turn off non-interactive shell sourcing
move options env to top of list add interactive echo for ssh remote loginsmaster
parent
f88453f6ca
commit
fdd2f05198
|
@ -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
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
if [[ $- == *i* ]]; then
|
||||
echo ssh interactive session
|
||||
fi
|
Reference in New Issue