1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-21 20:00:07 +00:00

remove "PHP" from php_version

This commit is contained in:
romkatv 2020-02-15 14:38:15 +01:00
parent 84097d9073
commit 4386b5a6e7

View file

@ -2433,7 +2433,7 @@ prompt_php_version() {
_p9k_upglob 'composer.json|*.php' && return
fi
_p9k_cached_cmd_stdout php --version || return
[[ $_p9k__ret == (#b)(*$'\n')#(PHP [[:digit:].]##)* ]] || return
[[ $_p9k__ret == (#b)(*$'\n')#'PHP '([[:digit:].]##)* ]] || return
local v=$match[2]
_p9k_prompt_segment "$0" "fuchsia" "grey93" 'PHP_ICON' 0 '' "${v//\%/%%}"
}