zshrc: alias ping before checking os type

This commit is contained in:
Dict Xiong 2024-01-15 20:16:29 +08:00
parent 3667d3bd15
commit 864456d35d

View File

@ -104,7 +104,7 @@ alias "se"='sudo -sE'
alias "sl"='sudo zsh -l' alias "sl"='sudo zsh -l'
alias "cps"='rsync -avh --info=progress2' alias "cps"='rsync -avh --info=progress2'
alias "mvs"='rsync -avh --info=progress2 --remove-source-files' alias "mvs"='rsync -avh --info=progress2 --remove-source-files'
alias "ping"='ping -n' if [[ $("$DOTFILES/tools/common.sh" get_os_type) == "linux" ]]; then alias "ping"='ping -n'; fi
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'