Install fzf for zsh

This commit is contained in:
Andrew Tomaka 2022-11-22 20:26:02 -05:00
parent 4a005b8f8c
commit 2b8c19e26f
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
3 changed files with 13 additions and 2 deletions

View file

@ -13,12 +13,13 @@ install_homebrew() {
fi fi
} }
install_shared_applications() { install_shared_applicaions() {
brew install direnv fzf git stow the_silver_searcher tmux \ brew install direnv fzf git stow the_silver_searcher tmux \
vim zsh rbenv ruby-build tfenv nodenv node-build tig libpq gnupg llvm \ vim zsh rbenv ruby-build tfenv nodenv node-build tig libpq gnupg llvm \
awscli cmake jq watch gh nvim openssl@1.1 openssl@3 readline libyaml gmp awscli cmake jq watch gh nvim openssl@1.1 openssl@3 readline libyaml gmp
install_alacritty_terminfo install_alacritty_terminfo
install_fzf
install_rust install_rust
install_vim install_vim
} }
@ -59,6 +60,14 @@ install_alacritty_terminfo() {
fi fi
} }
install_fzf() {
$(brew --prefix)/opt/fzf/install \
--xdg \
--no-update-rc \
--keybindings \
--completion
}
install_rust() { install_rust() {
if ! command -v rustup > /dev/null; then if ! command -v rustup > /dev/null; then
curl \ curl \

View file

@ -43,4 +43,4 @@ else
fi fi
unsetopt EXTENDEDGLOB unsetopt EXTENDEDGLOB
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh [ -f $XDG_CONFIG_HOME/fzf/fzf.zsh ] && source $XDG_CONFIG_HOME/fzf/fzf.zsh

View file

@ -1,5 +1,7 @@
ZDOTDIR=$HOME/.config/zsh ZDOTDIR=$HOME/.config/zsh
XDG_CONFIG_HOME="$HOME/.config"
PERSONAL_BIN_PATH="$HOME/bin" PERSONAL_BIN_PATH="$HOME/bin"
PERSONAL_FPATH="$ZDOTDIR/completions" PERSONAL_FPATH="$ZDOTDIR/completions"