forked from githubnext/monaspace
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c421774
commit 7a913b8
Showing
1 changed file
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |