Updates Ubuntu Font to use

This commit is contained in:
2023-04-20 17:16:32 +02:00
parent 3a120dde3c
commit 8957961441

View File

@@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
65;6800;1c65;6800;1c
set -e set -e
function print_help() { function print_help() {
@@ -174,16 +174,15 @@ function use_starship() {
} }
function install_ubuntu_mono_nerd() { function install_ubuntu_mono_nerd() {
echo "--- Ensuring UbuntuMono Nerd font is present" echo "--- Ensuring Ubuntu Mono Nerd font is present"
if ! fc-list | grep "UbuntuMono Nerd" 1>/dev/null if ! fc-list | grep "UbuntuMono Nerd Font" 1>/dev/null
then 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 run mkdir -p ~/.local/share/fonts
cp *.ttf ~/.local/share/fonts/ pushd ~/.local/share/fonts
run fc-cache -f 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 popd
run fc-cache -f
else else
echo "+++ UbuntuMono Nerd font is installed" echo "+++ UbuntuMono Nerd font is installed"
fi fi