tide/functions/_tide_item_php.fish
2021-03-02 09:46:40 -08:00

7 lines
194 B
Fish

function _tide_item_php
if test -e composer.json
set_color $tide_php_color
printf '%s' $tide_php_icon' ' (php --version | string match --regex 'PHP ([\d.]+)')[2]
end
end