Load scripts if exists

This commit is contained in:
Geoffrey Frogeye 2016-03-14 13:49:51 +01:00
parent 432846035d
commit 1419bd32d3

6
bashrc
View file

@ -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