2024-06-05 20:04:49 +02:00
|
|
|
#!/bin/bash
|
2024-05-06 22:55:03 +02:00
|
|
|
function ssh {
|
|
|
|
# benennt das aktuelle tmux-windows nach dem ssh-ziel
|
|
|
|
# baut ssh-verbindung auf
|
|
|
|
if [ -n "${TMUX}" ]; then
|
|
|
|
tmux rename-window "${@: -1}"
|
|
|
|
fi
|
|
|
|
command ssh "$@"
|
|
|
|
if [ -n "${TMUX}" ]; then
|
|
|
|
tmux rename-window "$(hostname -f)"
|
|
|
|
fi
|
|
|
|
}
|
2024-06-05 20:25:54 +02:00
|
|
|
|
2024-05-06 22:55:03 +02:00
|
|
|
function gp {
|
|
|
|
git pull "$@"
|
|
|
|
}
|