From 2b8c19e26fe3289d95ed76b637010c8f3543643f Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 22 Nov 2022 20:26:02 -0500 Subject: [PATCH] Install fzf for zsh --- install.sh | 11 ++++++++++- zsh/.config/zsh/.zshrc | 2 +- zsh/.zshenv | 2 ++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index d8009ec..74e1e3a 100755 --- a/install.sh +++ b/install.sh @@ -13,12 +13,13 @@ install_homebrew() { fi } -install_shared_applications() { +install_shared_applicaions() { brew install direnv fzf git stow the_silver_searcher tmux \ 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 install_alacritty_terminfo + install_fzf install_rust install_vim } @@ -59,6 +60,14 @@ install_alacritty_terminfo() { fi } +install_fzf() { + $(brew --prefix)/opt/fzf/install \ + --xdg \ + --no-update-rc \ + --keybindings \ + --completion +} + install_rust() { if ! command -v rustup > /dev/null; then curl \ diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index df7fb85..06633a3 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -43,4 +43,4 @@ else fi unsetopt EXTENDEDGLOB -[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh +[ -f $XDG_CONFIG_HOME/fzf/fzf.zsh ] && source $XDG_CONFIG_HOME/fzf/fzf.zsh diff --git a/zsh/.zshenv b/zsh/.zshenv index d4c428e..cc4e1a3 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -1,5 +1,7 @@ ZDOTDIR=$HOME/.config/zsh +XDG_CONFIG_HOME="$HOME/.config" + PERSONAL_BIN_PATH="$HOME/bin" PERSONAL_FPATH="$ZDOTDIR/completions"