Move sourcing shared RC to beginning so variables are available.
This commit is contained in:
@@ -8,6 +8,10 @@ if [[ -e ~/.env ]]; then
|
||||
source ~/.env
|
||||
fi
|
||||
|
||||
if [ -f ~/.rc_shared ]; then
|
||||
. ~/.rc_shared
|
||||
fi
|
||||
|
||||
# PS1
|
||||
# This helps to determine the color palette numbers:
|
||||
# https://robotmoon.com/bash-prompt-generator/
|
||||
@@ -563,10 +567,6 @@ alias prod-backup="pull_prod_backups"
|
||||
alias pull-prod="pull_prod_backups"
|
||||
alias prod-pull="pull_prod_backups"
|
||||
|
||||
if [ -f ~/.rc_shared ]; then
|
||||
. ~/.rc_shared
|
||||
fi
|
||||
|
||||
# Complete!
|
||||
PROG="$(basename -- "${BASH_SOURCE[0]}")"
|
||||
echo "'$PROG' completed!"
|
||||
|
||||
Reference in New Issue
Block a user