Merge branch 'next' of github.com:bhilburn/powerlevel9k into next

pull/22/head
Ben Hilburn 9 years ago
commit a3b61e92fb

@ -239,6 +239,7 @@ currently available are:
* **load** - Your machines 5 minute load average and free RAM.
* **node_version** - Show the version number of the installed Node.js.
* **os_icon** - Display a nice little icon, depending on your operating system.
* **php_version** - Show the current PHP version.
* **rbenv** - Ruby environment information (if one is active).
* **rspec_stats** - Show a ratio of test classes vs code classes for RSpec.
* **status** - The return code of the previous command, and status of background jobs.

@ -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

Loading…
Cancel
Save