]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
Only load ~/.bashrc if it's available.
authorSimon Ruderich <simon@ruderich.org>
Fri, 20 Feb 2009 17:37:35 +0000 (18:37 +0100)
committerSimon Ruderich <simon@ruderich.org>
Fri, 20 Feb 2009 17:37:35 +0000 (18:37 +0100)
Also add Vim modeline.

bash/profile

index 3c62d60c904dff56d528eac84d671b3fb1ed2e0c..4c2555220e614eb573cfe8cacc2dff1e06fa7ea4 100644 (file)
@@ -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