turn off non-interactive shell sourcing

move options env to top of list
add interactive echo for ssh remote logins
master
David Kebler 2021-01-14 12:49:56 -08:00
parent f88453f6ca
commit fdd2f05198
3 changed files with 4 additions and 1 deletions

View File

@ -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

3
ssh/interactive Normal file
View File

@ -0,0 +1,3 @@
if [[ $- == *i* ]]; then
echo ssh interactive session
fi