diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2015-09-06 01:02:03 +0300 |
---|---|---|
committer | Ben Hilburn <bhilburn@gmail.com> | 2015-09-06 01:02:03 +0300 |
commit | a3b61e92fb8188b03b851183eaab2ef8688d81ec (patch) | |
tree | 8d771f25084dcd4ca5a2eaaade385febc3aa0a0b /powerlevel9k.zsh-theme | |
parent | 3693a3bfa71be170bfbac6a1ff362f89a7972430 (diff) | |
parent | 65c44d6141d493b5392be5d076d79f8ddf4c143d (diff) |
Merge branch 'next' of github.com:bhilburn/powerlevel9k into next
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rw-r--r-- | powerlevel9k.zsh-theme | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index ef6d487d..b24e8abb 100644 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -680,6 +680,16 @@ prompt_os_icon() { $1_prompt_segment "$0" "008" "255" "$OS_ICON" } +# print PHP version number +prompt_php_version() { + local php_version + php_version=$(php -v 2>&1 | grep -oe "^PHP\s*[0-9.]*") + + if [[ -n "$php_version" ]]; then + $1_prompt_segment "$0" "013" "255" "$php_version" + fi +} + # rbenv information prompt_rbenv() { if [[ -n "$RBENV_VERSION" ]]; then |