Closed mafredri closed 3 years ago
Do you have setopt PUSHD_IGNORE_DUPS
?
@larkery ah, that didn't cross my mind but makes perfect sense. Indeed it was enabled. I simplified the approach in this PR by disabling pushd_ignore_dups
in local function scope.
When
histdb-sync
is run inside$hist_dir
,pushd
won't produce a new directory on the stack andpopd
will throw us out of the current directory. This PR addresses that and also adds the-q
flag topushd
andpopd
which e.g. prevents execution ofchpwd
hooks.