]> code.delx.au - dotfiles/commitdiff
bash: Fix PROMPT_COMMAND
authorJames Bunton <jamesbunton@delx.net.au>
Mon, 10 Dec 2018 20:50:00 +0000 (07:50 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Mon, 10 Dec 2018 20:50:57 +0000 (07:50 +1100)
.bashrc

diff --git a/.bashrc b/.bashrc
index 94beebe9391a39a97481366497761b2cee81971f..e8502b283bddc6dbfff50d082abe01fd840734b3 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -71,7 +71,7 @@ export HISTTIMEFORMAT='%F %T '
 stty -ixon
 
 # hostname:workingdir
 stty -ixon
 
 # hostname:workingdir
-PROMPT_COMMAND='echo -ne "\\033]0;$(hostname|cut -d. -f1):${PWD/$HOME/~}\\007"'
+PROMPT_COMMAND='echo -ne "\\033]0;$(hostname|cut -d. -f1):${PWD/$HOME/\~}\\007"'
 
 # Use dark background colors in apps like vim
 export COLORFGBG='15;0'
 
 # Use dark background colors in apps like vim
 export COLORFGBG='15;0'