Fix: Git remote in window title
This commit is contained in:
parent
e366960520
commit
496d61409c
1 changed files with 1 additions and 1 deletions
2
bashrc
2
bashrc
|
@ -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)"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue