From 46bd37fe515acd2d806e3a525761ce6c07a556d6 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Thu, 13 Feb 2014 14:35:26 -0600 Subject: [PATCH] Updated .bash_profile to conditionally include .bash_aliases. --- .bash_profile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.bash_profile b/.bash_profile index 06b3ade..d046918 100644 --- a/.bash_profile +++ b/.bash_profile @@ -18,8 +18,11 @@ export PATH=/usr/local/bin:/Users/jgeerling/bin:/usr/local/sbin:/usr/local/git/b # Flush DNS cache (See: http://support.apple.com/kb/ht5343). alias flush-dns='sudo killall -HUP mDNSResponder' -# Include alias files for easier ssh and remote connections (private). -source ~/.bash_aliases +# Include alias file (if present) containing aliases for ssh, etc. +if [ -f ~/.bash_aliases ] +then + source ~/.bash_aliases +fi # Route local traffic over ethernet when using certain WiFi networks w/o proxy. function net_route() {