zshrc: sibd and sob

This commit is contained in:
Dict Xiong 2022-11-14 01:09:48 +08:00
parent dae32c5293
commit af2058d91c

View File

@ -89,6 +89,8 @@ alias "se"='sudo -sE'
alias "pbd"='ping baidu.com' alias "pbd"='ping baidu.com'
alias "p114"='ping 114.114.114.114' alias "p114"='ping 114.114.114.114'
alias "p666"='ping6 2001:da8::666' 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}
case $(bash "$DOTFILES/tools/common.sh" get_os_type) in case $(bash "$DOTFILES/tools/common.sh" get_os_type) in
macos ) alias l='ls -lAGh -D "%y-%m-%d %H:%M"' ;; macos ) alias l='ls -lAGh -D "%y-%m-%d %H:%M"' ;;
* ) alias l='ls -lAGh --time-style="+%y-%m-%d %H:%M"' ;; * ) alias l='ls -lAGh --time-style="+%y-%m-%d %H:%M"' ;;