mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-12-05 01:56:49 +00:00
Add nerd font install
This commit is contained in:
parent
4e3ae30513
commit
dc57f8ebb2
@ -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
10
recipes/default/nerd-fonts
Executable 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
|
Loading…
Reference in New Issue
Block a user