Add nerd font install

This commit is contained in:
ViViDboarder 2024-11-26 15:02:18 -08:00
parent 4e3ae30513
commit dc57f8ebb2
2 changed files with 19 additions and 0 deletions

View File

@ -52,6 +52,11 @@ if ! is_installed 'ui_terms' && prompt_yn 'Install UI terminals?' ; then
install_ui_terms=true
fi
install_nerd_fonts=false
if install_ui_terms && ! is_installed 'nerd_fonts' && prompt_yn 'Install nerd fonts?"' ; then
install_nerd_fonts=true
fi
install_newunix=false
if ! is_installed 'newunix' && prompt_yn 'Install "new unix" utils (eg. dust, dog, duf)?' ; then
install_newunix=true
@ -84,6 +89,10 @@ if $install_ui_terms ; then
recipe 'alacritty'
recipe 'kitty'
set_installed 'ui_terms'
if $install_nerd_fonts ; then
recipe 'nerd-fonts'
set_installed 'nerd_fonts'
fi
fi
git submodule init

10
recipes/default/nerd-fonts Executable file
View File

@ -0,0 +1,10 @@
#! /bin/bash
VERSION="3.3.0"
curl -L -o "$TMP_DIR/NerdFontsSymbolsOnly.tar.xz" "https://github.com/ryanoasis/nerd-fonts/releases/download/v${VERSION}/NerdFontsSymbolsOnly.tar.xz"
if [[ "$UNAME_STR" == "Darwin" ]]; then
tar -xzvf "$TMP_DIR/NerdFontsSymbolsOnly.tar.xz" -C ~/Library/Fonts/
elif [[ "$UNAME_STR" == "Linux" ]]; then
tar -xzvf "$TMP_DIR/NerdFontsSymbolsOnly.tar.xz" -C ~/.local/share/fonts/
fi