Created
April 18, 2018 06:25
-
-
Save yasuoohno/3ac4590fb85a20e60465ce9d1f929bcf 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
# | |
# add path if the path is not exist. | |
# | |
function addpath() { | |
if echo ":$PATH:" | fgrep -q -s -v ":$1:" && [ -d "$1" ] ; then | |
PATH="$1:$PATH" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment