diff --git a/dotfiles/lib/shellenv/functions.sh b/dotfiles/lib/shellenv/functions.sh index 8590c42b..d5b1b77a 100644 --- a/dotfiles/lib/shellenv/functions.sh +++ b/dotfiles/lib/shellenv/functions.sh @@ -447,3 +447,7 @@ function jump_cd { cd $2 fi } + +function source_if_exists { + test -r "$1" && source "$1" +}