From 06cf7183301c514ee26a300dae6b021416d770b0 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 20 Feb 2009 18:37:35 +0100 Subject: [PATCH] Only load ~/.bashrc if it's available. Also add Vim modeline. --- bash/profile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.45.2