summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-06-14 22:31:57 +0300
committerLars Wirzenius <liw@liw.fi>2017-01-15 16:11:47 +0200
commita5fe1b2581b60f3249c53231b8c142dffa8eccbd (patch)
treeb5de4ee417e207822ddc09c6c0f1eb6c34bf5a55 /bashrc
parent7749a460509c3c4cd41b0bec250a2e74746b795f (diff)
downloadliw-dot-files-a5fe1b2581b60f3249c53231b8c142dffa8eccbd.tar.gz
Fix escaping; make dir basename blue
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc5
1 files changed, 3 insertions, 2 deletions
diff --git a/bashrc b/bashrc
index c7ab407..84f1fe8 100644
--- a/bashrc
+++ b/bashrc
@@ -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
}