removal of openfoam conditions at 34d34eb1 undone

This commit is contained in:
Fabian Preiss 2020-03-24 07:46:17 +01:00
parent 758affe574
commit ca63531ccd
1 changed files with 2 additions and 2 deletions

View File

@ -4139,9 +4139,9 @@ _p9k_prompt_goenv_init() {
################################################################
# Display openfoam information
prompt_openfoam() {
if [[ -z "$WM_FORK" ]] ; then
if [[ -n "$WM_PROJECT_VERSION" && -z "$WM_FORK" ]] ; then
_p9k_prompt_segment "$0" "yellow" "$_p9k_color1" '' 0 '' "OF: ${${WM_PROJECT_VERSION:t}//\%/%%}"
else
elif [[ -n "$WM_PROJECT_VERSION" && -n "$WM_FORK" ]] ; then
_p9k_prompt_segment "$0" "yellow" "$_p9k_color1" '' 0 '' "F-X: ${${WM_PROJECT_VERSION:t}//\%/%%}"
fi
}