Fix: Git remote in window title

This commit is contained in:
Gerrit Pannek 2017-11-05 09:07:38 +01:00
parent e366960520
commit 496d61409c
1 changed files with 1 additions and 1 deletions

2
bashrc
View File

@ -28,7 +28,7 @@ GIT_PROMPT_THEME=Noldorized
source ~/.bash-git-prompt/gitprompt.sh
function prompt_callback {
REPO=$(git remote -v | sed -r 's/^origin.*\/(.*)\.git.*/\1/' | head -1)
REPO=$(git remote -v | sed -r 's/^origin.*\/(.*)\ .*/\1/' | head -1)
gp_set_window_title "$REPO($GIT_BRANCH)"
}