source_if_exists

This commit is contained in:
Ivan Malison 2015-08-16 00:07:11 -07:00
parent 851ac482b8
commit 0efd386ab0

View File

@ -447,3 +447,7 @@ function jump_cd {
cd $2
fi
}
function source_if_exists {
test -r "$1" && source "$1"
}