From 882b269796d4f127f6d19d82c14f0f0e28380466 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sun, 12 May 2019 23:58:10 -0500 Subject: [PATCH] Test for a local .bashrc before trying to source it --- .bashrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.bashrc b/.bashrc index 138f3e7..b95123c 100644 --- a/.bashrc +++ b/.bashrc @@ -215,7 +215,7 @@ vactivate() { source $path/bin/activate; bash; deactivate } -# Append a local bashrc. Meant to give the ability to tune a bashrc for a -# specific environment. These won't be tracked in vcsh. +# Append a local bashrc if it exists. This gives the ability to insert untracked +# modifications to this .bashrc -source ~/.local.bashrc +[[ -s ~/.local.bashrc ]] && source ~/.local.bashrc