Use homebrew shellenv

Setup fzf completions
This commit is contained in:
Jonny Barnes 2024-04-29 18:12:15 +01:00
parent 677a5df9e4
commit 2cad87d43c
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8

View file

@ -38,8 +38,13 @@ if [[ -f /usr/libexec/path_helper ]]; then
fi fi
# Add our own dirs to the $PATH # Add our own dirs to the $PATH
export PATH="/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/opt/homebrew/sbin:/usr/local/sbin:/usr/sbin:/sbin:$HOME/.local/bin:$PATH" if [[ -f /opt/homebrew/bin/brew ]]; then
export MANPATH="/opt/homebrew/manpages:/usr/local/man:$MANPATH" eval "$(/opt/homebrew/bin/brew shellenv)"
fi
if [[ -f /usr/local/bin/brew ]]; then
eval "$(/usr/local/bin/brew shellenv)"
fi
export PATH="$HOME/.local/bin:$PATH"
# Source my own functions # Source my own functions
source $HOME/.zsh/functions.zsh source $HOME/.zsh/functions.zsh
@ -132,7 +137,7 @@ fi
if type vivid &>/dev/null; then if type vivid &>/dev/null; then
local vividTheme="ayu" local vividTheme="ayu"
if [[ $MACOS_APPEARANCE == "light" ]]; then if [[ $MACOS_APPEARANCE == "light" ]]; then
vividTheme="snazzy" vividTheme="catppuccin-latte"
fi fi
export LS_COLORS="$(vivid generate $vividTheme)" export LS_COLORS="$(vivid generate $vividTheme)"
@ -149,7 +154,9 @@ export BAT_THEME=$batTheme
# Setup fzf completions # Setup fzf completions
export FZF_COMPLETION_TRIGGER='~~' export FZF_COMPLETION_TRIGGER='~~'
test -e $HOME/.zsh/fzf-completions.zsh && source $HOME/.zsh/fzf-completions.zsh if type fzf > /dev/null; then
eval "$(fzf --zsh)"
fi
# Source the iTerm2 shell integration # Source the iTerm2 shell integration
test -e ${HOME}/.iterm2_shell_integration.zsh && source ${HOME}/.iterm2_shell_integration.zsh test -e ${HOME}/.iterm2_shell_integration.zsh && source ${HOME}/.iterm2_shell_integration.zsh