Add support for machine-specific bashrcs
authorDavid Kerkeslager <kerkeslager@gmail.com>
Tue, 4 Jun 2019 17:16:34 +0000 (13:16 -0400)
committerDavid Kerkeslager <kerkeslager@gmail.com>
Tue, 4 Jun 2019 17:16:34 +0000 (13:16 -0400)
.bashrc

diff --git a/.bashrc b/.bashrc
index 778a65d..578ecf2 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -78,6 +78,11 @@ fi
 PATH="/usr/local/bin:$PATH"
 export PATH
 
 PATH="/usr/local/bin:$PATH"
 export PATH
 
+# Run a machine-specific bashrc (if it exists).
+if [ -f $HOME/.bashrc_local ]; then
+       source $HOME/.bashrc_local
+fi
+
 # Automatically open screen.
 # The if statement prevents it from recursing (since screen opens bash).
 if [ $TERM != screen ]; then
 # Automatically open screen.
 # The if statement prevents it from recursing (since screen opens bash).
 if [ $TERM != screen ]; then