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

2
.zshrc
View File

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