From 864456d35df01c350a8b2ec1abcdfdb278d16015 Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Mon, 15 Jan 2024 20:16:29 +0800 Subject: [PATCH] zshrc: alias ping before checking os type --- .zshrc2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc2 b/.zshrc2 index 8570614..2ac4246 100644 --- a/.zshrc2 +++ b/.zshrc2 @@ -104,7 +104,7 @@ alias "se"='sudo -sE' alias "sl"='sudo zsh -l' alias "cps"='rsync -avh --info=progress2' 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 "p114"='ping 114.114.114.114' alias "p666"='ping6 2001:da8::666'