Last active
July 30, 2021 15:17
-
-
Save TheLandolorien/f8a212e26534ce6422ada3dfcabbe7aa to your computer and use it in GitHub Desktop.
Bash PATH Safe Additions
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
# Add new directories to PATH without duplicating on shell reload | |
# e.g. `source ~/.bash<SCRIPT_SUFFIX>` | |
[[ ":$PATH:" =~ ":<PATH_ADDITION>:" ]] || PATH="<PATH_ADDITION>:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment