source: trunk/debathena/config/shell-config/debian/profile.debathena.sh @ 25770

Revision 25770, 847 bytes checked in by jdreed, 12 years ago (diff)
In shell-config: * Don't source the now non-existent original undiverted profile
RevLine 
[25770]1# This is the Debathena /etc/profile.d configuration, installed by
[24005]2# debathena-bash-config.
[22685]3
[24005]4DEBATHENA_PROFILE_DIR=/usr/share/debathena-bash-config/profile.d
5DEBATHENA_BASHRC_DIR=/usr/share/debathena-bash-config/bashrc.d
6
[25770]7# /etc/profile has been sourced at this point (in fact, we're called
8# as the last step in it)
9# On Ubuntu, this will run /etc/bash.bashrc.  Our bash.bashrc sets a
10# variable, so we'll know if that happened.
[23997]11
[24005]12# If it didn't, source all bash scripts in our bashrc.d directory.
13if [ -n "$PS1" ] && [ -n "$BASH" ]; then
[25770]14    if [ "${debathena_bashrc_sourced:-x}" != 1 ]; then
[24005]15        for i in `run-parts --list "$DEBATHENA_BASHRC_DIR"`; do . "$i"; done
16    fi
17fi
[25770]18unset debathena_bashrc_sourced
[24005]19
20# Finally, source all bash scripts in our profile.d directory.
[23996]21for i in `run-parts --list "$DEBATHENA_PROFILE_DIR"`; do . "$i"; done
Note: See TracBrowser for help on using the repository browser.