dotfiles/scripts/git_pull
Michael Grote ec4c75bd09 git: make gp great again
Signed-off-by: Michael Grote <michael.grote@dataport.de>
2024-09-16 09:43:47 +02:00

9 lines
234 B
Bash
Executable file

#!/bin/bash
if [ -n "${TMUX}" ]; then
remotename=$(git remote -v | cut -f2 -d"@" | cut -f1 -d":" | head -n1)
tmux rename-window "SSH: $remotename"
fi
git pull
if [ -n "${TMUX}" ]; then
tmux rename-window "$(basename $(pwd))"
fi