Skip to content

Commit

Permalink
Let -- temporarily unset auto_pushd
Browse files Browse the repository at this point in the history
  • Loading branch information
vaeth committed Nov 13, 2020
1 parent 628a64c commit 45bd680
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ alias -g 'NIL'='>&/dev/null'
# Let -- tacitly "reload" the current directory after filesystem changes.
# Note that the necessary option -q is not available in bash.

alias -- --='cd -q -- $PWD'
alias -- -- NUL && unalias -- --
--() {
setopt local_options no_auto_pushd
cd -q -- $PWD
}

# Make noglob not work like "command" but expand aliases:

Expand Down

0 comments on commit 45bd680

Please sign in to comment.