Skip to content

Commit 3b8b4c1

Browse files
authored
Merge pull request #87 from davidosomething/no-aliases
Introduce _ZL_NO_ALIASES to skip creating aliases
2 parents fdd037a + 8eaebca commit 3b8b4c1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

z.lua.plugin.zsh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ export _ZL_FZF_FLAG=${_ZL_FZF_FLAG:-"-e"}
2424

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

27-
28-
alias zz='z -i'
29-
alias zc='z -c'
30-
alias zf='z -I'
31-
alias zb='z -b'
32-
alias zh='z -I -t .'
33-
alias zzc='zz -c'
34-
27+
if [[ -z "$_ZL_NO_ALIASES" ]]; then
28+
alias zz='z -i'
29+
alias zc='z -c'
30+
alias zf='z -I'
31+
alias zb='z -b'
32+
alias zh='z -I -t .'
33+
alias zzc='zz -c'
34+
fi

0 commit comments

Comments
 (0)