ec4c75bd09
Signed-off-by: Michael Grote <michael.grote@dataport.de>
9 lines
234 B
Bash
Executable file
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
|