diff options
author | Lars Wirzenius <liw@liw.fi> | 2016-06-14 22:34:02 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-01-15 16:11:48 +0200 |
commit | 5d5d8a05c16c308a2f419890db481cada7656b3a (patch) | |
tree | c5b15badb7aa8163234eac29b66994a3176c2830 /bashrc | |
parent | a5fe1b2581b60f3249c53231b8c142dffa8eccbd (diff) | |
download | liw-dot-files-5d5d8a05c16c308a2f419890db481cada7656b3a.tar.gz |
Use basename of dir in bash prompt
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 2 |
1 files changed, 1 insertions, 1 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() |