diff --git a/update.sh b/update.sh index 5c84ff9..e29f674 100755 --- a/update.sh +++ b/update.sh @@ -1,5 +1,5 @@ #!/bin/bash - +65;6800;1c65;6800;1c set -e function print_help() { @@ -174,16 +174,15 @@ function use_starship() { } function install_ubuntu_mono_nerd() { - echo "--- Ensuring UbuntuMono Nerd font is present" - if ! fc-list | grep "UbuntuMono Nerd" 1>/dev/null + echo "--- Ensuring Ubuntu Mono Nerd font is present" + if ! fc-list | grep "UbuntuMono Nerd Font" 1>/dev/null then - pushd /tmp - run wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/UbuntuMono.zip - run unzip UbuntuMono.zip run mkdir -p ~/.local/share/fonts - cp *.ttf ~/.local/share/fonts/ - run fc-cache -f + pushd ~/.local/share/fonts + echo "Fetching UbuntuMono Nerd Font" + curl -fL -o "Ubuntu Mono Nerd Font Complete Mono.ttf" https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/UbuntuMono/Regular/complete/Ubuntu%20Mono%20Nerd%20Font%20Complete%20Mono.ttf popd + run fc-cache -f else echo "+++ UbuntuMono Nerd font is installed" fi