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
|
#!/bin/sh
|
||||||
|
export ACP_PROFILE=1
|
||||||
|
|
||||||
#if [ -r /etc/profile ]; then
|
#if [ -r /etc/profile ]; then
|
||||||
# . /etc/profile
|
# . /etc/profile
|
||||||
|
@ -15,6 +16,6 @@ if [ -r $HOME/.profile.$(hostname -s) ]; then
|
||||||
. $HOME/.profile.$(hostname -s)
|
. $HOME/.profile.$(hostname -s)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$SSH_TTY" ]; then
|
if [ -z "$ACP_SHRC" ] || [ -n "$SSH_TTY" ]; then
|
||||||
. $HOME/.shrc
|
. $HOME/.shrc
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
export ACP_SHRC=1
|
||||||
|
|
||||||
if [ "$ZSH_VERSION" ]; then
|
if [ "$ZSH_VERSION" ]; then
|
||||||
emulate sh -c 'source /etc/profile'
|
emulate sh -c 'source /etc/profile'
|
||||||
|
|
Loading…
Reference in a new issue