Update asdf and fzf to work nicer with MacOS

This commit is contained in:
Tony Blyler 2022-08-22 21:16:31 -04:00
parent 32ebf043e3
commit 56a572e55f
4 changed files with 11 additions and 2 deletions

View file

@ -1,4 +1,3 @@
golang 1.19 golang 1.19
chezmoi 2.20.0 chezmoi 2.20.0
nodejs lts nodejs lts
aws-copilot 1.20.0

View file

@ -1,5 +1,12 @@
if [ -r ~/.asdf/asdf.sh ]; then if [ -r ~/.asdf/asdf.sh ]; then
. ~/.asdf/asdf.sh . ~/.asdf/asdf.sh
fi
if command -v brew &> /dev/null && [ -r "$(brew --prefix)/opt/asdf/asdf.sh" ]; then
. "$(brew --prefix)/opt/asdf/asdf.sh"
fi
if [ -n "$ASDF_DIR" ]; then
# append completions to fpath # append completions to fpath
fpath=(${ASDF_DIR}/completions $fpath) fpath=(${ASDF_DIR}/completions $fpath)
fi fi

View file

@ -5,3 +5,7 @@ done
2>/dev/null for FZF_FILE in /usr/share/fzf/shell/*.zsh; do 2>/dev/null for FZF_FILE in /usr/share/fzf/shell/*.zsh; do
source "$FZF_FILE" source "$FZF_FILE"
done done
2>/dev/null for FZF_FILE in /opt/homebrew/opt/fzf/shell/*.zsh; do
source "$FZF_FILE"
done

View file

@ -1,5 +1,4 @@
if command -v brew &> /dev/null; then if command -v brew &> /dev/null; then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}" FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
autoload -Uz compinit autoload -Uz compinit
compinit
fi fi