fix: command -v will generate some strings to stdout.
This commit is contained in:
6
.bashrc
6
.bashrc
@@ -29,10 +29,10 @@ alias psu="ps -ww -U"
|
||||
alias s="screen"
|
||||
alias udac="sudo apt update; sudo apt dist-upgrade -y; sudo apt autoremove -y; sudo apt clean"
|
||||
#
|
||||
if command -v hpnssh; then
|
||||
alias "ssh=hpnssh -C -e none"
|
||||
if command -v hpnssh > /dev/null; then
|
||||
alias ssh="hpnssh -C -e none"
|
||||
else
|
||||
alias "ssh=ssh -C -e none"
|
||||
alias ssh="ssh -C -e none"
|
||||
fi
|
||||
#
|
||||
if [[ -x /opt/local/bin/gtelnet ]]; then
|
||||
|
||||
2
.zshrc
2
.zshrc
@@ -27,7 +27,7 @@ alias "psu=ps -ww -U"
|
||||
alias "s=screen"
|
||||
alias "udac=sudo apt update; sudo apt dist-upgrade -y; sudo apt autoremove -y; sudo apt clean"
|
||||
#
|
||||
if command -v hpnssh; then
|
||||
if command -v hpnssh > /dev/null; then
|
||||
alias "ssh=hpnssh -C -e none"
|
||||
else
|
||||
alias "ssh=ssh -C -e none"
|
||||
|
||||
Reference in New Issue
Block a user