[zsh] Add fzf to zsh
This commit is contained in:
16
zsh/.fzf.zsh
Normal file
16
zsh/.fzf.zsh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
|
||||
# Setup fzf
|
||||
# ---------
|
||||
if [[ ! "$PATH" == */opt/homebrew/opt/fzf/bin* ]]; then
|
||||
PATH="${PATH:+${PATH}:}/opt/homebrew/opt/fzf/bin"
|
||||
fi
|
||||
|
||||
# Auto-completion
|
||||
# ---------------
|
||||
source "/opt/homebrew/opt/fzf/shell/completion.zsh"
|
||||
|
||||
# Key bindings
|
||||
# ------------
|
||||
source "/opt/homebrew/opt/fzf/shell/key-bindings.zsh"
|
||||
@ -5,7 +5,7 @@ export ZSH="$HOME/.oh-my-zsh"
|
||||
|
||||
ZSH_THEME="robbyrussell"
|
||||
|
||||
plugins=(git z asdf direnv emacs yarn)
|
||||
plugins=(git z fzf asdf direnv emacs yarn)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
@ -13,3 +13,5 @@ source $ZSH/oh-my-zsh.sh
|
||||
# Example aliases
|
||||
alias dj="poetry run python manage.py $argv"
|
||||
alias sysu="systemctl --user $argv"
|
||||
|
||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||
|
||||
Reference in New Issue
Block a user