diff options
author | Bogdan Cismariu <bogdan.cismariu@gmail.com> | 2015-11-05 13:02:07 +0200 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2015-11-17 01:11:07 +0400 |
commit | 7d43ff6f8f07b31b514b17b776304ef4864cf9c5 (patch) | |
tree | 25684f928fa73f977576bde1285ff57ce9c9fc12 | |
parent | d6d083aa9969b74233c351ea1d81f51910ecf789 (diff) | |
download | dotfiles-7d43ff6f8f07b31b514b17b776304ef4864cf9c5.tar.gz dotfiles-7d43ff6f8f07b31b514b17b776304ef4864cf9c5.tar.bz2 dotfiles-7d43ff6f8f07b31b514b17b776304ef4864cf9c5.zip |
.bash_prompt: Improve escape sequences
Closes #598. See https://github.com/mathiasbynens/dotfiles/pull/598#issuecomment-157090316.
-rw-r--r-- | .bash_prompt | 4 |
1 files changed, 2 insertions, 2 deletions
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; |