Open abeljim opened 7 months ago
In principle it could use the XDG_DATA_HOME
also, instead of assuming where share/fonts
is, for people who have a different directory layout.
# Get target root directory
if [[ $(uname) == 'Darwin' ]]; then
# MacOS
sys_share_dir="/Library"
usr_share_dir="$HOME/Library"
font_subdir="Fonts"
else
# Linux
sys_share_dir="/usr/local/share"
usr_share_dir="$HOME/.local/share"
font_subdir="fonts"
fi
if [ -n "${XDG_DATA_HOME}" ]; then
usr_share_dir="${XDG_DATA_HOME}"
fi
Code snippet that allows Linux and MacOS installs, system-wide or user
Better fix is #66
Updated script based on feedback. See first post for more info.
I'm seeing these PRs after writing my own modifications to this installation script too :sweat_smile:
IMO Monaspace should have its own directory in fonts e.g.: ${XDG_DATA_HOME}/fonts/Monaspace/
, as over 200 files are copied there by this script.
Hi there! This seems way nicer than our crappy install scripts, but I don't want to hold up releasing v1.101 for it. Going to figure this out for 1.2, alongside #89. Stay tuned!
Fixes #63 Install script is now a single file for mac and Linux. Handles XDG_DATA_HOME if available. Prints out progress messages for the user. Updated ReadMe.