summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-10-20 09:41:11 +0200
committerTobias Klauser <tklauser@distanz.ch>2014-10-20 09:41:11 +0200
commit10e20dbe2094cd81f63660d1873879606af47c7c (patch)
treee40b076fa3d6ab7fdb6b515d134ec6bac5df2afd /.bashrc
parent952000bc062a3a5a5fb64e1921e5e78f183df611 (diff)
bashrc: Allow to start bash from zsh
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc5
1 files changed, 4 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index 3e4b665..1a2e8ce 100644
--- a/.bashrc
+++ b/.bashrc
@@ -1,7 +1,9 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
+parent=$(ps -o comm= -p $PPID)
+
# use zsh if available and configured
-if [ -f /bin/zsh ] && [ -f .zsh/override_bash ] ; then
+if [ -f /bin/zsh ] && [ -f .zsh/override_bash ] && [ "x$parent" != "xzsh" ] && [ "x$parent" != "bash" ] ; then
exec /bin/zsh
fi
@@ -77,5 +79,6 @@ alias l='ls -hl'
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
+
export NACL_INC_DIR=/home/tobiask/nacl/nacl-20110221/build/ziws06/include/amd64
export NACL_LIB_DIR=/home/tobiask/nacl/nacl-20110221/build/ziws06/lib/amd64