source bash_profile from bashrc

This commit is contained in:
Danny Robson 2019-02-26 12:33:54 +11:00
parent 939ccf15b9
commit 86dc3db1a1
2 changed files with 7 additions and 10 deletions

View File

@ -1,7 +1,6 @@
SELF="$(realpath "${BASH_SOURCE[0]}")"
DIR="$(cd "$(dirname "${SELF}")"; pwd -P)"
source "${DIR}/bashrc.sh"
for d in $(ls "${DIR}"/*/profile); do
source "${d}"

View File

@ -1,11 +1,3 @@
# /etc/skel/.bashrc
#
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output. So make sure this doesn't display
# anything or bad things will happen !
# Test for an interactive shell. There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
@ -15,4 +7,10 @@ if [[ $- != *i* ]] ; then
fi
# Put your fun stuff here.
if [ -f /etc/profile ]; then
source /etc/profile
fi
if [ -f ~/.bash_profile ]; then
source ~/.bash_profile
fi