This commit is contained in:
Brian Zalewski 2024-01-02 02:42:43 +00:00
parent 57fd987492
commit d80857beac
3 changed files with 9 additions and 4 deletions

View file

@ -207,7 +207,6 @@ data:
username: "{{ default "user" (env "USER") }}"
weatherZipCode: 07960
diff:
command: delta
pager: delta
format: git
args:

View file

@ -18,8 +18,14 @@ applyFontsToSystem() {
### macOS
logg info 'Copying fonts from ~/Library/Fonts and ~/.local/share/fonts to /Library/Fonts to make them available globally'
FONT_DIR='/Library/Fonts'
sudo rsync -av "$HOME/Library/Fonts" "$FONT_DIR"
sudo rsync -av "${XDG_DATA_HOME:-$HOME/.local/share}/fonts" "$FONT_DIR"
### ~/Library/Fonts
if [ -d "$HOME/Library/Fonts" ]; then
logg info "Syncing $HOME/Library/Fonts to $FONT_DIR" && sudo rsync -av "$HOME/Library/Fonts" "$FONT_DIR"
fi
### ~/.local/share/fonts
if [ -d "${XDG_DATA_HOME:-$HOME/.local/share}/fonts" ]; then
logg info "Syncing ${XDG_DATA_HOME:-$HOME/.local/share}/fonts to $FONT_DIR" && sudo rsync -av "${XDG_DATA_HOME:-$HOME/.local/share}/fonts" "$FONT_DIR"
fi
else
### Linux
### Copy fonts