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
|
Line | |
---|
1 | # This is the Debathena /etc/profile.d configuration, installed by |
---|
2 | # debathena-bash-config. |
---|
3 | |
---|
4 | DEBATHENA_PROFILE_DIR=/usr/share/debathena-bash-config/profile.d |
---|
5 | DEBATHENA_BASHRC_DIR=/usr/share/debathena-bash-config/bashrc.d |
---|
6 | |
---|
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. |
---|
11 | |
---|
12 | # If it didn't, source all bash scripts in our bashrc.d directory. |
---|
13 | if [ -n "$PS1" ] && [ -n "$BASH" ]; then |
---|
14 | if [ "${debathena_bashrc_sourced:-x}" != 1 ]; then |
---|
15 | for i in `run-parts --list "$DEBATHENA_BASHRC_DIR"`; do . "$i"; done |
---|
16 | fi |
---|
17 | fi |
---|
18 | unset debathena_bashrc_sourced |
---|
19 | |
---|
20 | # Finally, source all bash scripts in our profile.d directory. |
---|
21 | for i in `run-parts --list "$DEBATHENA_PROFILE_DIR"`; do . "$i"; done |
---|
Note: See
TracBrowser
for help on using the repository browser.