25 lines
790 B
Bash
25 lines
790 B
Bash
# this .bashrc for use ONLY with uci bash shell system
|
|
|
|
# uncomment these for debugging.
|
|
# echo ---- sourcing system .bashrc for user $USER ---
|
|
# [[ $USER_ROOT ]] && echo 'Root User' || echo 'Non Root User'
|
|
# [[ $SHELL_INTERACTIVE ]] && echo 'Interactive' || echo 'Not interactive'
|
|
# [[ $SHELL_LOGIN ]] && echo 'Login shell' || echo 'Not login shell'
|
|
# [[ $SSH_SESSION ]] && echo ssh remote user || echo local user
|
|
# env | grep BASH
|
|
# echo ---------------------
|
|
|
|
|
|
# uncomment for custom processing
|
|
#if [[ $SHELL_LOGIN ]]; then
|
|
# echo "login shell (called from .bash_profile)"
|
|
# fi
|
|
|
|
if [[ $SSH_SESSION ]]; then
|
|
# echo remote ssh session
|
|
cd /opt
|
|
fi
|
|
|
|
# anything below will be sourced by all shell types (except non-interactive/login)
|
|
export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin
|