z.lua <3 fzf = fz

Alpha Chen 1 year ago
parent 3e15af2944
commit f1d8ea0364
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -44,7 +44,9 @@ function eject { command hdiutil eject `df | grep Volumes | grep -i "$@" | ruby
function \$() { "$@" } function \$() { "$@" }
if [ -e $(brew --prefix z.lua)/share/z.lua/z.lua ]; then if [ -e $(brew --prefix z.lua)/share/z.lua/z.lua ]; then
eval "$(lua $(brew --prefix z.lua)/share/z.lua/z.lua --init zsh enhanced fzf)" eval "$(lua $(brew --prefix z.lua)/share/z.lua/z.lua --init zsh enhanced once echo fzf)"
alias fz="z -I"
fi fi
if [ $commands[eza] ]; then if [ $commands[eza] ]; then
@ -92,9 +94,9 @@ fi
### completions ### completions
if [ -e $HOMEBREW_PREFIX/opt/fzf/shell/completion.zsh ]; then if [ -e $(brew --prefix fzf)/shell/completion.zsh ]; then
source $HOMEBREW_PREFIX/opt/fzf/shell/key-bindings.zsh source $(brew --prefix fzf)/shell/key-bindings.zsh
source $HOMEBREW_PREFIX/opt/fzf/shell/completion.zsh source $(brew --prefix fzf)/shell/completion.zsh
fi fi
[ -x "$(command -v kubectl)" ] && source <(kubectl completion zsh) [ -x "$(command -v kubectl)" ] && source <(kubectl completion zsh)

Loading…
Cancel
Save