aboutsummaryrefslogtreecommitdiffstats
path: root/.bash_prompt
diff options
context:
space:
mode:
authorEthan Pogrebizsky <eitanpo@users.noreply.github.com>2016-02-14 18:03:57 +0200
committerMathias Bynens <mathias@qiwi.be>2016-02-15 14:35:08 +0100
commitecf3e3731ab257444c99e6bf3f86f9615f087144 (patch)
tree34b4f859c6265416f920171f6fc36feed1fb9998 /.bash_prompt
parent8654ead31bac51ab90a6d6eb0a0132cb57c1eb92 (diff)
downloaddotfiles-ecf3e3731ab257444c99e6bf3f86f9615f087144.tar.gz
dotfiles-ecf3e3731ab257444c99e6bf3f86f9615f087144.tar.bz2
dotfiles-ecf3e3731ab257444c99e6bf3f86f9615f087144.zip
.bash_prompt: Improve terminal title
Closes #625.
Diffstat (limited to '.bash_prompt')
-rw-r--r--.bash_prompt6
1 files changed, 3 insertions, 3 deletions
diff --git a/.bash_prompt b/.bash_prompt
index cb018fd..d357107 100644
--- a/.bash_prompt
+++ b/.bash_prompt
@@ -103,14 +103,14 @@ else
hostStyle="${yellow}";
fi;
-# Set the terminal title to the current working directory.
-PS1="\033]0; ${PWD##*/}\007";
+# Set the terminal title and prompt.
+PS1="\[\033]0;\W\007\]"; # working directory base name
PS1+="\[${bold}\]\n"; # newline
PS1+="\[${userStyle}\]\u"; # username
PS1+="\[${white}\] at ";
PS1+="\[${hostStyle}\]\h"; # host
PS1+="\[${white}\] in ";
-PS1+="\[${green}\]\w"; # working directory
+PS1+="\[${green}\]\w"; # working directory full path
PS1+="\$(prompt_git \"\[${white}\] on \[${violet}\]\" \"\[${blue}\]\")"; # Git repository details
PS1+="\n";
PS1+="\[${white}\]\$ \[${reset}\]"; # `$` (and reset color)