dotfiles/scripts/git_pull

10 lines
234 B
Text
Raw Normal View History

#!/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