Last active
March 27, 2024 15:29
-
-
Save AuxiliumEngineer/c868f6f3aa975d55ee17aa25d54d809f to your computer and use it in GitHub Desktop.
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
# Give your checking syntax a meaningful name | |
# You may enjoy onMacos more, don't judge me | |
onmacOS() { | |
[[ ${OSTYPE} == darwin* ]] | |
} |
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
# Assumes you have configured those variables as sets, so have no duplicate on reload | |
# Now you can use it as an conditional that is readable | |
onmacOS && export PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH" | |
onmacOS && export MANPATH="/opt/homebrew/opt/coreutils/libexec/gnuman:$MANPATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment