In cd -1, -2, -3 etc in Z shell it appears you can do cd -<tab>
and cd +<tab>
to do tab-completion of the directory stack. I think it's supposed to work out of the box on zsh?
However this doesn't work for me. I've even tried the suggestions in https://unix.stackexchange.com/a/157773 and that doesn't work either.
I'm using zsh 5.2 (x86_64-unknown-linux-gnu)
on archlinux.
The output of setopt
is
alwaystoend
autocd
autopushd
cdablevars
extendedhistory
histignorealldups
nohup
interactive
interactivecomments
monitor
nonomatch
promptsubst
pushdminus
shinstdin
zle
How can I make tab completion of the directory stack work?