mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
Merge 85decc5ffa into 1c958e02a5
This commit is contained in:
commit
c3474408dc
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ DIRSTACKSIZE=${DIRSTACKSIZE:-20}
|
|||
dirstack_file=${dirstack_file:-${HOME}/.zdirs}
|
||||
|
||||
if [[ -f ${dirstack_file} ]] && [[ ${#dirstack[*]} -eq 0 ]] ; then
|
||||
dirstack=( ${(f)"$(< $dirstack_file)"} )
|
||||
dirstack=( ${(uf)"$(< $dirstack_file)"} )
|
||||
# "cd -" won't work after login by just setting $OLDPWD, so
|
||||
[[ -d $dirstack[1] ]] && cd $dirstack[1] && cd $OLDPWD
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue