bash: ssh verbessert
This commit is contained in:
parent
364702e830
commit
53db978a6f
1 changed files with 9 additions and 4 deletions
|
@ -1,9 +1,5 @@
|
|||
rg --files -g "*$1*"
|
||||
}
|
||||
ssh() { #() ist die kurzform von function
|
||||
tmux rename-window "$*"
|
||||
command ssh "$@"
|
||||
}
|
||||
|
||||
|
||||
function sgc {
|
||||
|
@ -86,4 +82,13 @@ function rgi {
|
|||
fi
|
||||
fi
|
||||
}
|
||||
function ssh {
|
||||
# benennt das aktuelle tmux-windows nach dem ssh-ziel
|
||||
# baut ssh-verbindung auf
|
||||
if [ -n "${TMUX}" ]; then
|
||||
tmux rename-window "$*"
|
||||
fi
|
||||
command ssh "$@"
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue