Load shrc if not already loaded
This commit is contained in:
parent
86f2a1fbfa
commit
bde906a55f
2 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
#!/bin/sh
|
||||
export ACP_PROFILE=1
|
||||
|
||||
#if [ -r /etc/profile ]; then
|
||||
# . /etc/profile
|
||||
|
@ -15,6 +16,6 @@ if [ -r $HOME/.profile.$(hostname -s) ]; then
|
|||
. $HOME/.profile.$(hostname -s)
|
||||
fi
|
||||
|
||||
if [ -n "$SSH_TTY" ]; then
|
||||
if [ -z "$ACP_SHRC" ] || [ -n "$SSH_TTY" ]; then
|
||||
. $HOME/.shrc
|
||||
fi
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/sh
|
||||
export ACP_SHRC=1
|
||||
|
||||
if [ "$ZSH_VERSION" ]; then
|
||||
emulate sh -c 'source /etc/profile'
|
||||
|
|
Loading…
Reference in a new issue