This commit is contained in:
Riccardo Sven Risuleo 2017-05-02 02:19:30 +00:00 committed by GitHub
commit 19837568f3

View file

@ -0,0 +1,10 @@
DIRSTACKSIZE=9
DIRSTACKFILE=~/.zdirs
if [[ -f $DIRSTACKFILE ]] && [[ $#dirstack -eq 0 ]]; then
dirstack=( ${(f)"$(< $DIRSTACKFILE)"} )
[[ -d $dirstack[1] ]] && cd $dirstack[1]
fi
function chpwd() {
print -l $PWD ${(u)dirstack}> $DIRSTACKFILE
}