* Initial plan * Consolidate mise tools installation and fix GitHub Copilot CLI package Co-authored-by: andrejusk <7396847+andrejusk@users.noreply.github.com> * Revert copilot package changes and remove --jobs flag from mise install Co-authored-by: andrejusk <7396847+andrejusk@users.noreply.github.com> * fix: permissions * Move GitHub CLI (gh) installation to mise Co-authored-by: andrejusk <7396847+andrejusk@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: andrejusk <7396847+andrejusk@users.noreply.github.com> Co-authored-by: Andrejus <git@andrejus.uk>
35 lines
783 B
Bash
Executable File
35 lines
783 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Description:
|
|
# (macOS only) Install nerdfonts.
|
|
#
|
|
|
|
# macOS only
|
|
[[ "$DOTS_OS" != "macos" ]] && { log_warn "Skipping: Not macOS"; return 0; }
|
|
|
|
fonts_list=(
|
|
font-fira-mono-nerd-font
|
|
font-fira-code-nerd-font
|
|
)
|
|
|
|
# Check if any fonts are missing
|
|
fonts_missing=false
|
|
for font in "${fonts_list[@]}"; do
|
|
if ! echo "$BREW_CASKS" | grep -q "^$font$"; then
|
|
fonts_missing=true
|
|
break
|
|
fi
|
|
done
|
|
|
|
if [[ "$fonts_missing" == "true" ]]; then
|
|
brew tap homebrew/cask-fonts
|
|
for font in "${fonts_list[@]}"; do
|
|
if ! echo "$BREW_CASKS" | grep -q "^$font$"; then
|
|
brew install --cask "$font"
|
|
fi
|
|
done
|
|
fi
|
|
|
|
unset fonts_list fonts_missing
|