瀏覽代碼

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,7 +55,7 @@ export PS2=$(make_ps2)
55 55
 
56 56
 case "$TERM" in
57 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 60
     # Show the currently running command in the terminal title:
61 61
     # http://www.davidpashley.com/articles/xterm-titles-with-bash.html
@@ -71,9 +71,9 @@ xterm*|rxvt*|screen*)
71 71
             *)
72 72
                 if test -n "${BASH_COMMAND}";
73 73
                 then
74
-                    echo -ne "\033]0;${BASH_COMMAND} (${PWD/$HOME/~})\007"
74
+                    echo -ne "\033]0;${BASH_COMMAND} (${PWD/$HOME/\~})\007"
75 75
                 else
76
-                    echo -ne "\033]0;$(__make_ps1d)${PWD/$HOME/~}\$\007"
76
+                    echo -ne "\033]0;$(__make_ps1d)${PWD/$HOME/\~}\$\007"
77 77
                 fi
78 78
                 ;;
79 79
         esac