🐛 Fix all install errors

This commit is contained in:
Marley Rae 2024-02-03 20:03:19 -08:00
parent 1f59558fdd
commit 1464356289
6 changed files with 12 additions and 8 deletions

View file

@ -15,4 +15,4 @@ brew_install "FiraCode Nerd Font" font-fira-code-nerd-font "" homebrew/cask-font
brew_install "Starship Prompt" starship
brew_install "The Fuck" thefuck
npm_install "tldr pages" tldr
brew_install exa exa
brew_install eza eza

View file

@ -45,7 +45,7 @@ function brew_install -a formula_readable_name formula arguments tap_value servi
end
# Determine if a service needs to be started & restarted on login.
if set -q service
if set -q service && [ "$service" = true ]
set -f service_cmd "&& brew services start $formula"
end

View file

@ -5,7 +5,11 @@ source "$DOT/script/utils.fish"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
function npm_install -a msg pkg
execute \
"source $DOT/node/path.config.fish && npm install --global --silent $pkg" \
"$msg"
set -f cmd "npm install --global --silent $pkg"
if ! cmd_exists volta
set cmd "source $DOT/node/path.config.fish; $cmd"
end
execute "$cmd" "$msg"
end

View file

@ -9,5 +9,5 @@ print_subtitle "Language & Region"
execute "defaults write -g AppleLanguages -array 'en'" \
"Set language"
execute "defaults write -g AppleICUDateFormatStrings -dict '{2 = 'd MMM y'; 3 = 'd MMMM y'; 4 = 'EEEE, d MMMM y'}'" \
execute "defaults write -g AppleICUDateFormatStrings -dict 2 'd MMM y' 3 'd MMMM y' 4 'EEEE, d MMMM y'" \
"Set date formats"

View file

@ -6,5 +6,5 @@ source "$DOT/script/utils.fish"
print_subtitle Networking
execute "defaults write -g com.apple.NetworkBrowser BrowseAllInterfaces 1" \
execute "defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true" \
"Allow AirDrop over Ethernet"

View file

@ -7,4 +7,4 @@ source "$DOT/homebrew/brew_utils.fish"
print_subtitle tmux
brew_install tmux
brew_install tmux tmux