From 1419bd32d3dfb6bcf7e1e9702fe1489bdd5923f8 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Mon, 14 Mar 2016 13:49:51 +0100 Subject: [PATCH] Load scripts if exists --- bashrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bashrc b/bashrc index 505719c..734b0b5 100644 --- a/bashrc +++ b/bashrc @@ -1,10 +1,12 @@ # Custom scripts + + #find ~/.scripts/ ~/.gscripts/ -type f -name "*.sh" | while read script; do #source "$script" #done -source ~/.scripts/index.sh -source ~/.gscripts/index.sh +[ -f ~/.scripts/index.sh ] && source ~/.scripts/index.sh +[ -f ~/.gscripts/index.sh ] && source ~/.gscripts/index.sh # Prompt if [[ $USER == 'root' ]]; then