diff --git a/.zshrc2 b/.zshrc2 index 9df6365..ca81942 100644 --- a/.zshrc2 +++ b/.zshrc2 @@ -90,6 +90,7 @@ alias "p114"='ping 114.114.114.114' alias "p666"='ping6 2001:da8::666' sibd() { ssh -p 12022 root@$1${1:+.}ibd.ink } sob() { ssh -p 24022 root@$1${1:+.}ob.ac.cn } +snasp() { ssh -o ProxyJump="ssh@nasp.ob.ac.cn:36022" dictxiong@$1 } case $(bash "$DOTFILES/tools/common.sh" get_os_type) in macos ) alias l='ls -lAGh -D "%y-%m-%d %H:%M"' ;; * ) alias l='ls -lAGh --time-style="+%y-%m-%d %H:%M"' ;; diff --git a/scripts/doll b/scripts/doll index c13308e..2fb7c91 100755 --- a/scripts/doll +++ b/scripts/doll @@ -21,5 +21,5 @@ if [[ -z "$IMAGE" ]]; then fmt_fatal "image not found" else echo "--> ${IMAGE_META[@]}" - $SUDO docker run -itd $IMAGE sh + $SUDO docker run ${2:+"--name"} $2 -itd $IMAGE sh fi