|
|
@ -5,7 +5,8 @@ |
|
|
|
# Run dirpersiststore in ~/.zlogout |
|
|
|
# Run dirpersiststore in ~/.zlogout |
|
|
|
|
|
|
|
|
|
|
|
dirpersiststore () { |
|
|
|
dirpersiststore () { |
|
|
|
dirs -p | sed 's/ /\\ /g;s/^/pushd -q /;1!G;h;$!d;' > ~/.zdirstore |
|
|
|
# FIXME: need to escape all shell metacharacters, not just spaces! |
|
|
|
|
|
|
|
dirs -p | sed 's/ /\\ /g;s/&/\\&/;s/^/pushd -q /;1!G;h;$!d;' > ~/.zdirstore |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
dirpersistrestore () { |
|
|
|
dirpersistrestore () { |
|
|
@ -19,4 +20,4 @@ setopt autopushd pushdminus pushdsilent pushdtohome pushdignoredups |
|
|
|
dirpersistrestore |
|
|
|
dirpersistrestore |
|
|
|
|
|
|
|
|
|
|
|
# Make popd changes permanent without having to wait for logout |
|
|
|
# Make popd changes permanent without having to wait for logout |
|
|
|
alias popd="popd;dirpersiststore" |
|
|
|
alias popd="popd;dirpersiststore" |
|
|
|