summary refs log tree commit diff
path: root/Functions/Newuser/zsh-newuser-install
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Newuser/zsh-newuser-install')
-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