-
-
Save huseyin/8be823acf786d89875105d25982d89f5 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
# munge PATH | |
pathmunge() { | |
case ":${PATH}:" in *:"$1":*) return 0 ;; esac | |
[ "$2" = after ] && PATH=$PATH:$1 || PATH=$1:$PATH | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment