1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-06-26 01:07:11 -07:00

warn about nonexistent paths

This commit is contained in:
Connor Olding 2019-05-27 12:08:54 +02:00
parent 769dba39a8
commit f0b95f54a7

View File

@ -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"