From fdd2f051986034f28e587695d02a842e808423a8 Mon Sep 17 00:00:00 2001 From: David Kebler Date: Thu, 14 Jan 2021 12:49:56 -0800 Subject: [PATCH] turn off non-interactive shell sourcing move options env to top of list add interactive echo for ssh remote logins --- env/{options.env => 00-options.env} | 0 shell.env | 2 +- ssh/interactive | 3 +++ 3 files changed, 4 insertions(+), 1 deletion(-) rename env/{options.env => 00-options.env} (100%) create mode 100644 ssh/interactive diff --git a/env/options.env b/env/00-options.env similarity index 100% rename from env/options.env rename to env/00-options.env diff --git a/shell.env b/shell.env index ee5d20f..66850cb 100644 --- a/shell.env +++ b/shell.env @@ -35,7 +35,7 @@ export BASH_SHELL_STARTUP=$BASH_SHELL_BASE/startup.sh # strtup.sh is default # if uncommented next line sets up implicit sourcing for non-interactive shells # echo ----NON_INTERACTIVE SHELL INFO----- # echo enabling bash shell repos for non-inactive shell -export BASH_ENV=$BASH_SHELL_LOAD # use base repo +# export BASH_ENV=$BASH_SHELL_LOAD # use base repo # echo enabling aliases with non-interactive shell export BASH_USE_ALIAS=true # will source aliases for non-interactive # echo see $BASH_SHELL_BASE/shell.env diff --git a/ssh/interactive b/ssh/interactive new file mode 100644 index 0000000..fc790db --- /dev/null +++ b/ssh/interactive @@ -0,0 +1,3 @@ +if [[ $- == *i* ]]; then +echo ssh interactive session +fi