From 496d61409cc79be70a00522dd85506df09499c8b Mon Sep 17 00:00:00 2001 From: Gerrit Pannek Date: Sun, 5 Nov 2017 09:07:38 +0100 Subject: [PATCH] Fix: Git remote in window title --- bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc b/bashrc index 6f5ebd2..54328a1 100644 --- a/bashrc +++ b/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)" }