Fix tmux window naming when SSHing and fix Darwin/arm64 completions loading.
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
# and modified to set also "ssh" prefix.
|
||||
ssh() {
|
||||
if [ -n "$TMUX" ]; then
|
||||
tmux -2u rename-window "ssh $(echo $* | rev | cut -d '@' -f1 | rev)";
|
||||
command ssh "$@";
|
||||
tmux -2u set-window-option automatic-rename "on" > /dev/null;
|
||||
tmux -2u rename-window "ssh $(echo $* | rev | cut -d '@' -f1 | rev)"
|
||||
command ssh "$@"
|
||||
tmux -2u set-window-option automatic-rename "on" > /dev/null
|
||||
else
|
||||
command ssh "$@";
|
||||
fi
|
||||
|
Reference in New Issue
Block a user