This commit is contained in:
Joe Lillibridge 2024-12-02 13:48:19 -06:00
parent 7b91512393
commit 7165513cd7
No known key found for this signature in database
2 changed files with 9 additions and 5 deletions

View File

@ -7,13 +7,13 @@ set -eu
{% if yadm.os == "Darwin" %}
# install homebrew if it's missing
if ! command -v brew >/dev/null 2>&1; then
echo "Installing homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo "Installing homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
if [ -f "$HOME/.Brewfile" ]; then
echo "Updating homebrew bundle"
brew bundle --global
echo "Updating homebrew bundle"
brew bundle --global
fi
{% endif %}
@ -87,6 +87,10 @@ done
hash -r
{% if yadm.os == "Linux" %}
npm install --global pure-prompt
{% endif %}
{% if yadm.class == "Work" %}
YARN=$(brew --prefix yarn)/bin/yarn

2
.zshrc
View File

@ -67,7 +67,6 @@ FUNCS_TO_AUTOLOAD=()
FUNCS_TO_AUTOLOAD+=(
f
fshow
ql
show-fpath
take
tre
@ -80,6 +79,7 @@ FUNCS_TO_AUTOLOAD+=(
if [ "$system_type" = "Darwin" ]; then
FUNCS_TO_AUTOLOAD+=(
brew-visit
ql
)
fi