diff --git a/main-cookbook b/main-cookbook index cb4c2bb..eaad392 100755 --- a/main-cookbook +++ b/main-cookbook @@ -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 diff --git a/recipes/default/nerd-fonts b/recipes/default/nerd-fonts new file mode 100755 index 0000000..7a6ac3a --- /dev/null +++ b/recipes/default/nerd-fonts @@ -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