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"