diff options
author | Robin Rosenstock <robin.rosenstock@t-online.de> | 2017-12-12 00:40:06 +0300 |
---|---|---|
committer | Robin Rosenstock <robin.rosenstock@t-online.de> | 2017-12-12 00:40:06 +0300 |
commit | f5f73f25e579c3c5d6e7c25f2e823dbd5d60ef91 (patch) | |
tree | 71ad3d900ee706732f8dae3196c4fcb9835d8432 /powerlevel9k.zsh-theme | |
parent | 3fe9b83ebb0c835d2588f88873d6e8e6b2e1e1be (diff) |
fixes #696
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 4e7f4316..8578e6f2 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -1399,6 +1399,16 @@ prompt_pyenv() { fi } +prompt_openfoam() { + local wm_project_version="$WM_PROJECT_VERSION" + local wm_fork="$WM_FORK" + if [[ -n "$wm_project_version" ]] && [[ -z "$wm_fork" ]] ; then + "$1_prompt_segment" "$0" "$2" "yellow" "$DEFAULT_COLOR" "OF: $(basename "$wm_project_version")" + elif [[ -n "$wm_project_version" ]] && [[ -n "$wm_fork" ]] ; then + "$1_prompt_segment" "$0" "$2" "yellow" "$DEFAULT_COLOR" "F-X: $(basename "$wm_project_version")" + fi +} + # Swift version prompt_swift_version() { # Get the first number as this is probably the "main" version number.. |