From: Simon Ruderich Date: Fri, 20 Feb 2009 17:37:35 +0000 (+0100) Subject: Only load ~/.bashrc if it's available. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=06cf7183301c514ee26a300dae6b021416d770b0;p=config%2Fdotfiles.git Only load ~/.bashrc if it's available. Also add Vim modeline. --- diff --git a/bash/profile b/bash/profile index 3c62d60..4c25552 100644 --- a/bash/profile +++ b/bash/profile @@ -1,5 +1,9 @@ # Bash login configuration file. -# Load ~/.bashrc. -. ~/.bashrc +# Load ~/.bashrc if it exists. +if [[ -f ~/.bashrc ]]; then + . ~/.bashrc +fi + +# vim: ft=sh