bash-util/env.bash

1 line
71 B
Bash

add_path() { [[ ":$PATH:" != *":$1:"* ]] && export PATH="$1:$PATH" ; }