aboutsummaryrefslogtreecommitdiffstats
path: root/.bash_prompt
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2014-06-20 09:59:07 +0200
committerMathias Bynens <mathias@qiwi.be>2014-06-20 09:59:07 +0200
commitceb19ea9a4f5afdbe2108ad53bf5d9ee6ed44ee7 (patch)
tree0356dbc13fe5b16bcfa3b6b70e57cd1bb1196e4e /.bash_prompt
parent3ec5769e54aaf23c07ef7beca180db698306d808 (diff)
downloaddotfiles-ceb19ea9a4f5afdbe2108ad53bf5d9ee6ed44ee7.tar.gz
dotfiles-ceb19ea9a4f5afdbe2108ad53bf5d9ee6ed44ee7.tar.bz2
dotfiles-ceb19ea9a4f5afdbe2108ad53bf5d9ee6ed44ee7.zip
.bash_prompt: Add back escape sequences
Fixes #403.
Diffstat (limited to '.bash_prompt')
-rw-r--r--.bash_prompt18
1 files changed, 9 insertions, 9 deletions
diff --git a/.bash_prompt b/.bash_prompt
index 28d36f1..788296f 100644
--- a/.bash_prompt
+++ b/.bash_prompt
@@ -104,17 +104,17 @@ else
fi;
# Set the terminal title to the current working directory.
-PS1="\033]0;\w\007";
-PS1+="${bold}\n"; # newline
-PS1+="${userStyle}\u"; # username
-PS1+="${white} at ";
-PS1+="${hostStyle}\h"; # host
-PS1+="${white} in ";
-PS1+="${green}\w"; # working directory
+PS1="\[\033]0;\w\007\]";
+PS1+="\[${bold}\]\n"; # newline
+PS1+="\[${userStyle}\]\u"; # username
+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+="\n";
-PS1+="${white}\$ ${reset}"; # `$` (and reset color)
+PS1+="\[${white}\]\$ \[${reset}\]"; # `$` (and reset color)
export PS1;
-PS2="${yellow}→ ${reset}";
+PS2="\[${yellow}\]→ \[${reset}\]";
export PS2;