diff --git a/roles/home-cli/files/profile b/roles/home-cli/files/profile index ebaf7b4..27ad1e6 100644 --- a/roles/home-cli/files/profile +++ b/roles/home-cli/files/profile @@ -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 diff --git a/roles/home-cli/files/shrc b/roles/home-cli/files/shrc index 7d7551a..85244b6 100644 --- a/roles/home-cli/files/shrc +++ b/roles/home-cli/files/shrc @@ -1,4 +1,5 @@ #!/bin/sh +export ACP_SHRC=1 if [ "$ZSH_VERSION" ]; then emulate sh -c 'source /etc/profile'