source bash_profile from bashrc
This commit is contained in:
parent
939ccf15b9
commit
86dc3db1a1
@ -1,7 +1,6 @@
|
|||||||
SELF="$(realpath "${BASH_SOURCE[0]}")"
|
SELF="$(realpath "${BASH_SOURCE[0]}")"
|
||||||
DIR="$(cd "$(dirname "${SELF}")"; pwd -P)"
|
DIR="$(cd "$(dirname "${SELF}")"; pwd -P)"
|
||||||
|
|
||||||
source "${DIR}/bashrc.sh"
|
|
||||||
|
|
||||||
for d in $(ls "${DIR}"/*/profile); do
|
for d in $(ls "${DIR}"/*/profile); do
|
||||||
source "${d}"
|
source "${d}"
|
||||||
|
16
bashrc.sh
16
bashrc.sh
@ -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
|
# 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
|
# past this point for scp and rcp, and it's important to refrain from
|
||||||
# outputting anything in those cases.
|
# outputting anything in those cases.
|
||||||
@ -15,4 +7,10 @@ if [[ $- != *i* ]] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Put your fun stuff here.
|
if [ -f /etc/profile ]; then
|
||||||
|
source /etc/profile
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f ~/.bash_profile ]; then
|
||||||
|
source ~/.bash_profile
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user