about summary refs log tree commit diff
path: root/Functions/Newuser
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-11-24 11:46:46 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-11-24 11:46:46 +0000
commit5dfd592bf2ffe9336d4ba7e827f50e275c96ee37 (patch)
treecf360c951a61f738aa61b56aa2b62281a825720b /Functions/Newuser
parente66af50a984b9b693fd6bbbf5f806612cdd03b66 (diff)
downloadzsh-5dfd592bf2ffe9336d4ba7e827f50e275c96ee37.tar.gz
zsh-5dfd592bf2ffe9336d4ba7e827f50e275c96ee37.tar.xz
zsh-5dfd592bf2ffe9336d4ba7e827f50e275c96ee37.zip
22018: minor newuser tweaks
Diffstat (limited to 'Functions/Newuser')
-rw-r--r--Functions/Newuser/zsh-newuser-install4
1 files changed, 2 insertions, 2 deletions
diff --git a/Functions/Newuser/zsh-newuser-install b/Functions/Newuser/zsh-newuser-install
index e042af08a..d8fd437ed 100644
--- a/Functions/Newuser/zsh-newuser-install
+++ b/Functions/Newuser/zsh-newuser-install
@@ -61,8 +61,8 @@ install_state[completion]=Recommended
 trap 'save=0' HUP INT QUIT
 
 # Substitute an initial ~ for human consumption.
-if [[ $zd = $HOME ]]; then
-  zdmsg="~"
+if [[ $zd = $HOME(#b)(|/*) ]]; then
+  zdmsg="~$match[1]"
 else
   zdmsg=$zd
 fi