瀏覽代碼

Suppress tilde expansion

On Debian Wheezy the tilde expansion is performed.  Suppress it
explicitly.
Alois Mahdal 10 年之前
父節點
當前提交
c8384a976f
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      dotfiles/bash/post.bashrc

+ 3
- 3
dotfiles/bash/post.bashrc 查看文件

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