devshell.sh: introduce $JEHANNE_DEVELOPER_DIR
$JEHANNE_DEVELOPER_DIR (default to ~/.jehanne) can hooks the into the enviroment started by ./hacking/devshell.sh: $JEHANNE_DEVELOPER_DIR/devshell.sh is sourced by ./hacking/devshell.sh $JEHANNE_DEVELOPER_DIR/gdbinit is sourced by gdb started with ./hacking/gdb.sh
This commit is contained in:
parent
a14a0f9224
commit
7be0dbfbed
14
devshell.sh
14
devshell.sh
@ -6,4 +6,18 @@ export ARCH=amd64
|
||||
|
||||
export TOOLPREFIX=x86_64-jehanne-
|
||||
|
||||
# let each developer to customize her environment
|
||||
if [ "$JEHANNE_DEVELOPER_DIR" = "" ]; then
|
||||
JEHANNE_DEVELOPER_DIR=$HOME/.jehanne/
|
||||
fi
|
||||
if [ -d "$JEHANNE_DEVELOPER_DIR" ]; then
|
||||
export JEHANNE_DEVELOPER_DIR
|
||||
if [ -f "$JEHANNE_DEVELOPER_DIR/devshell.sh" ]; then
|
||||
if [ "$JEHANNE_DEVELOPER_INIT_RUN" != "1" ]; then
|
||||
. "$JEHANNE_DEVELOPER_DIR/devshell.sh"
|
||||
export JEHANNE_DEVELOPER_INIT_RUN=1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
bash --rcfile <(cat ~/.bashrc; echo 'PS1="JehanneDEV $PS1"')
|
||||
|
Loading…
x
Reference in New Issue
Block a user