From 7d43ff6f8f07b31b514b17b776304ef4864cf9c5 Mon Sep 17 00:00:00 2001 From: Bogdan Cismariu Date: Thu, 5 Nov 2015 13:02:07 +0200 Subject: .bash_prompt: Improve escape sequences Closes #598. See https://github.com/mathiasbynens/dotfiles/pull/598#issuecomment-157090316. --- .bash_prompt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.bash_prompt') diff --git a/.bash_prompt b/.bash_prompt index 13a026f..7afdb79 100644 --- a/.bash_prompt +++ b/.bash_prompt @@ -53,7 +53,7 @@ prompt_git() { [ -n "${s}" ] && s=" [${s}]"; - echo -e "${1}${branchName}${blue}${s}"; + echo -e "${1}${branchName}${2}${s}"; else return; fi; @@ -111,7 +111,7 @@ PS1+="\[${white}\] at "; PS1+="\[${hostStyle}\]\h"; # host PS1+="\[${white}\] in "; PS1+="\[${green}\]\w"; # working directory -PS1+="\$(prompt_git \"${white} on ${violet}\")"; # Git repository details +PS1+="\$(prompt_git \"\[${white}\] on \[${violet}\]\" \"\[${blue}\]\")"; # Git repository details PS1+="\n"; PS1+="\[${white}\]\$ \[${reset}\]"; # `$` (and reset color) export PS1; -- cgit v1.2.3