Skip to content

Commit

Permalink
fix: don't break normal alias
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloxaf committed Feb 21, 2024
1 parent cdc36de commit dc038b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fzf-tab.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
[[ ! -o 'no_brace_expand' ]] || _ftb_opts+=('no_brace_expand')
'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand'

# disable global aliases
typeset _ftb_aliases="$(builtin alias -Lmg '[^+]*')"
# disable aliases
typeset _ftb_aliases="$(builtin alias -Lm '[^+]*')"
builtin unalias -m '[^+]*'

# thanks Valodim/zsh-capture-completion
Expand Down Expand Up @@ -399,7 +399,7 @@ typeset -ga _ftb_group_colors=(
enable-fzf-tab
zle -N toggle-fzf-tab

# restore global aliases
# restore aliases
eval "$_ftb_aliases"
builtin unset _ftb_aliases

Expand Down

0 comments on commit dc038b2

Please sign in to comment.