mirror of
https://github.com/notwa/rc
synced 2025-03-16 14:52:51 -07:00
warn about nonexistent paths
This commit is contained in:
parent
769dba39a8
commit
f0b95f54a7
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ hash -d py=~win"/Dropbox/py"
|
|||
|
||||
ADDPATH() {
|
||||
new="$(readlink -f "$1")"
|
||||
[ -d "$new" ] || echo -E "ADDPATH: path doesn't exist: $new" >&2
|
||||
grep ":$new:" <<<":$PATH:" >/dev/null || export PATH="$PATH:$new"
|
||||
}
|
||||
ADDPATH "$HOME/opt/local/bin"
|
||||
|
|
Loading…
Add table
Reference in a new issue