mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
etc/bashrc: Updated to better support zsh
Resolves patch request https://bugs.openfoam.org/view.php?id=2490
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -42,8 +42,8 @@ export WM_PROJECT_VERSION=dev
|
|||||||
#
|
#
|
||||||
# Please set to the appropriate path if the default is not correct.
|
# Please set to the appropriate path if the default is not correct.
|
||||||
#
|
#
|
||||||
[ $BASH_SOURCE ] && \
|
[ ${BASH_SOURCE:-$0} ] && \
|
||||||
export FOAM_INST_DIR=$(cd $(dirname $BASH_SOURCE)/../.. && pwd -P) || \
|
export FOAM_INST_DIR=$(cd $(dirname ${BASH_SOURCE:-$0})/../.. && pwd -P) || \
|
||||||
export FOAM_INST_DIR=$HOME/$WM_PROJECT
|
export FOAM_INST_DIR=$HOME/$WM_PROJECT
|
||||||
# export FOAM_INST_DIR=~$WM_PROJECT
|
# export FOAM_INST_DIR=~$WM_PROJECT
|
||||||
# export FOAM_INST_DIR=/opt/$WM_PROJECT
|
# export FOAM_INST_DIR=/opt/$WM_PROJECT
|
||||||
|
|||||||
Reference in New Issue
Block a user