Updates Ubuntu Font to use
This commit is contained in:
13
update.sh
13
update.sh
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
65;6800;1c65;6800;1c
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
function print_help() {
|
function print_help() {
|
||||||
@@ -175,15 +175,14 @@ function use_starship() {
|
|||||||
|
|
||||||
function install_ubuntu_mono_nerd() {
|
function install_ubuntu_mono_nerd() {
|
||||||
echo "--- Ensuring Ubuntu Mono 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
|
||||||
|
|||||||
Reference in New Issue
Block a user