etc/bashrc: Updated to support ksh and zsh

Resolves bug-report https://bugs.openfoam.org/view.php?id=2636
This commit is contained in:
Henry Weller
2017-07-27 14:16:24 +01:00
parent 019c14b8cf
commit c66fba323c

View File

@ -42,7 +42,7 @@ export WM_PROJECT_VERSION=5.x
#
# Please set to the appropriate path if the default is not correct.
#
[ ${BASH_SOURCE:-$0} ] && \
[ "$BASH" -o "$ZSH_NAME" ] && \
export FOAM_INST_DIR=$(cd $(dirname ${BASH_SOURCE:-$0})/../.. && pwd -P) || \
export FOAM_INST_DIR=$HOME/$WM_PROJECT
# export FOAM_INST_DIR=~$WM_PROJECT
@ -211,6 +211,6 @@ unset cleaned foamClean foamOldDirs
# Source the bash completion file:
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. $WM_PROJECT_DIR/etc/config.sh/bash_completion
[ "$BASH" ] && . $WM_PROJECT_DIR/etc/config.sh/bash_completion
#------------------------------------------------------------------------------