You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/usr/bin/env bash
|
|
|
|
_add_path () {
|
|
if [ ! -d "$1" ]; then
|
|
return
|
|
fi
|
|
case "${PATH}" in
|
|
*"$1"*) return ;;
|
|
*) ;;
|
|
esac
|
|
PATH="${PATH}:$1"
|
|
}
|
|
|
|
_add_path "/usr/local/opt/mysql-client/bin"
|
|
_add_path "${HOME}/google-cloud-sdk/bin"
|
|
|
|
unset _add_path
|