diff options
author | Lars Wirzenius <liw@liw.fi> | 2016-06-14 22:31:57 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-01-15 16:11:47 +0200 |
commit | a5fe1b2581b60f3249c53231b8c142dffa8eccbd (patch) | |
tree | b5de4ee417e207822ddc09c6c0f1eb6c34bf5a55 /bashrc | |
parent | 7749a460509c3c4cd41b0bec250a2e74746b795f (diff) | |
download | liw-dot-files-a5fe1b2581b60f3249c53231b8c142dffa8eccbd.tar.gz |
Fix escaping; make dir basename blue
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -66,7 +66,7 @@ prompt_command() { fi base="`basename "$PWD"`" str2xterm "$base - $iconpart$PWD" "$base - $titlepart$PWD" - PS1="\\[$(start_bold)\\]$debian_chroot\\u@\\h$(git_prompt_part)$(basename_mode)(\w)$(start_bold)\\$ \\[$(normal_mode)\\]" + PS1="\\[$(start_bold)\\]$debian_chroot\\u@\\h$(git_prompt_part)\\[$(basename_mode)\\](\w)\\[$(start_bold)\\]\\$ \\[$(normal_mode)\\]" } we_have_term() @@ -78,7 +78,8 @@ basename_mode() { if we_have_term then - tput dim + tput sgr0 + tput setaf 4 fi } |