Load scripts if exists
This commit is contained in:
parent
432846035d
commit
1419bd32d3
6
bashrc
6
bashrc
|
@ -1,10 +1,12 @@
|
||||||
# Custom scripts
|
# Custom scripts
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#find ~/.scripts/ ~/.gscripts/ -type f -name "*.sh" | while read script; do
|
#find ~/.scripts/ ~/.gscripts/ -type f -name "*.sh" | while read script; do
|
||||||
#source "$script"
|
#source "$script"
|
||||||
#done
|
#done
|
||||||
source ~/.scripts/index.sh
|
[ -f ~/.scripts/index.sh ] && source ~/.scripts/index.sh
|
||||||
source ~/.gscripts/index.sh
|
[ -f ~/.gscripts/index.sh ] && source ~/.gscripts/index.sh
|
||||||
|
|
||||||
# Prompt
|
# Prompt
|
||||||
if [[ $USER == 'root' ]]; then
|
if [[ $USER == 'root' ]]; then
|
||||||
|
|
Loading…
Reference in a new issue