dotfiles/.bash_functions
Michael Grote cad2c5337f bash: move rg* to scripts
Signed-off-by: Michael Grote <michael.grote@posteo.de>
2024-06-05 20:25:54 +02:00

16 lines
305 B
Bash

#!/bin/bash
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
}
function gp {
git pull "$@"
}