10 lines
234 B
Text
10 lines
234 B
Text
|
#!/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
|