Skip to content

Commit

Permalink
Merge pull request #87 from davidosomething/no-aliases
Browse files Browse the repository at this point in the history
Introduce _ZL_NO_ALIASES to skip creating aliases
  • Loading branch information
skywind3000 authored Dec 25, 2019
2 parents fdd037a + 8eaebca commit 3b8b4c1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions z.lua.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ export _ZL_FZF_FLAG=${_ZL_FZF_FLAG:-"-e"}

eval "$($ZLUA_EXEC $ZLUA_SCRIPT --init zsh once enhanced)"


alias zz='z -i'
alias zc='z -c'
alias zf='z -I'
alias zb='z -b'
alias zh='z -I -t .'
alias zzc='zz -c'

if [[ -z "$_ZL_NO_ALIASES" ]]; then
alias zz='z -i'
alias zc='z -c'
alias zf='z -I'
alias zb='z -b'
alias zh='z -I -t .'
alias zzc='zz -c'
fi

0 comments on commit 3b8b4c1

Please sign in to comment.