mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 04:30:24 +02:00
22018: minor newuser tweaks
This commit is contained in:
parent
e66af50a98
commit
5dfd592bf2
3 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue