This repository has been archived on 2022-02-20. You can view files and clone it, but cannot push or open issues/pull-requests.
2020-11-13 10:25:04 -08:00
|
|
|
#!/bin/bash
|
|
|
|
# uncomment these for debugging.
|
|
|
|
# echo ---- sourcing system wide bash.bashrc ---
|
|
|
|
# [ $EUID -eq 0 ] && echo 'Root User' || echo 'Non Root User'
|
|
|
|
# [[ $- == *i* ]] && echo 'Interactive' || echo 'Not interactive'
|
|
|
|
# shopt -q login_shell && echo 'Login shell' || echo 'Not login shell'
|
2020-11-23 15:14:18 -08:00
|
|
|
# ([ -n "$SSH_CONNECTION" ] || [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]) && echo ssh remote user || echo local user
|
|
|
|
# echo ---------------------
|
2020-11-18 15:32:09 -08:00
|
|
|
|
2020-11-23 15:14:18 -08:00
|
|
|
if ([ -n "$SSH_CONNECTION" ] || [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]); then
|
|
|
|
export SSH_SESSION=true
|
|
|
|
source /etc/profile
|
|
|
|
fi
|
2020-12-03 20:48:04 -08:00
|
|
|
# global debug on or off via debug_on debug_off aliases
|
|
|
|
# can add this export to any file
|
|
|
|
#export BASH_DEBUG=true
|
2020-11-13 10:25:04 -08:00
|
|
|
source $BASH_SHELL_LOAD
|