Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
shekharmayank committed Nov 11, 2023
1 parent c421774 commit 7a913b8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions util/install_linux.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
#!/bin/bash

# check for fonts directory, create it if not present
if ! test -d ~/.local/share/fonts; then
mkdir ~/.local/share/fonts
fi

# remove all fonts from ~/.local/share/fonts that start with "Monaspace"
rm -rf ~/.local/share/fonts/Monaspace*

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

# copy all fonts from ./otf to ~/.local/share/fonts
cp ./fonts/otf/* ~/.local/share/fonts
cp $SCRIPT_DIR/../fonts/otf/* ~/.local/share/fonts

# copy variable fonts from ./variable to ~/.local/share/fonts
cp ./fonts/variable/* ~/.local/share/fonts
cp $SCRIPT_DIR/../fonts/variable/* ~/.local/share/fonts

# Build font information caches
fc-cache -f

0 comments on commit 7a913b8

Please sign in to comment.