Skip to content

Commit

Permalink
Add nerd font install
Browse files Browse the repository at this point in the history
  • Loading branch information
ViViDboarder committed Nov 26, 2024
1 parent 4e3ae30 commit dc57f8e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main-cookbook
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions recipes/default/nerd-fonts
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit dc57f8e

Please sign in to comment.