feat: dir, install changes
This commit is contained in:
22
script/install.d/04-nerdfont.sh
Normal file
22
script/install.d/04-nerdfont.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Description:
|
||||
# (macOS only) Install nerdfonts.
|
||||
#
|
||||
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
fonts_list=(
|
||||
font-fira-mono-nerd-font
|
||||
font-fira-code-nerd-font
|
||||
)
|
||||
|
||||
if ! brew list "${fonts_list[@]}" &> /dev/null; then
|
||||
brew tap homebrew/cask-fonts
|
||||
for font in "${fonts_list[@]}"; do
|
||||
brew install --cask "$font"
|
||||
done
|
||||
fi
|
||||
|
||||
unset fonts_list
|
||||
fi
|
||||
Reference in New Issue
Block a user