Browse Source

Suppress tilde expansion

On Debian Wheezy the tilde expansion is performed.  Suppress it
explicitly.
Alois Mahdal 10 years ago
parent
commit
c8384a976f
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      dotfiles/bash/post.bashrc

+ 3
- 3
dotfiles/bash/post.bashrc View File

55
 
55
 
56
 case "$TERM" in
56
 case "$TERM" in
57
 xterm*|rxvt*|screen*)
57
 xterm*|rxvt*|screen*)
58
-    PROMPT_COMMAND='__save_rv $?; echo -ne "\033]0;$(__make_ps1d)${PWD/$HOME/~}\$\007"'
58
+    PROMPT_COMMAND='__save_rv $?; echo -ne "\033]0;$(__make_ps1d)${PWD/$HOME/\~}\$\007"'
59
 
59
 
60
     # Show the currently running command in the terminal title:
60
     # Show the currently running command in the terminal title:
61
     # http://www.davidpashley.com/articles/xterm-titles-with-bash.html
61
     # http://www.davidpashley.com/articles/xterm-titles-with-bash.html
71
             *)
71
             *)
72
                 if test -n "${BASH_COMMAND}";
72
                 if test -n "${BASH_COMMAND}";
73
                 then
73
                 then
74
-                    echo -ne "\033]0;${BASH_COMMAND} (${PWD/$HOME/~})\007"
74
+                    echo -ne "\033]0;${BASH_COMMAND} (${PWD/$HOME/\~})\007"
75
                 else
75
                 else
76
-                    echo -ne "\033]0;$(__make_ps1d)${PWD/$HOME/~}\$\007"
76
+                    echo -ne "\033]0;$(__make_ps1d)${PWD/$HOME/\~}\$\007"
77
                 fi
77
                 fi
78
                 ;;
78
                 ;;
79
         esac
79
         esac