~tomterl/zshorg

1423b36a9f619c60afe5d3540ab65c4fcd9e0530 — Tom Regner 1 year, 10 months ago c546226
Adapt php version extraction to php7.4 (ubuntu)
1 files changed, 1 insertions(+), 1 deletions(-)

M zshrc.org
M zshrc.org => zshrc.org +1 -1
@@ 769,7 769,7 @@ Do not show the ~nodejs~ block, show our new shiny php block instead.
  BLOX_BLOCK__PHP_COLOR="${BLOX_BLOCK__PHP_COLOR:-green}"
  function blox_block__php() {
	  if [ -n "$(find_root "$PWD" RoboFile.php)" ]; then
		  PHPV=$(php --version | head -n 1 | cut -d- -f1 | sed 's/PHP //')
		  PHPV=$(php --version | head -n 1 | cut -d- -f1 | sed 's/PHP //' | cut -d\  -f1)
		  blox_helper__build_block \
			  "${BLOX_BLOCK__PHP_COLOR}" \
			  "${BLOX_BLOCK__PHP_SYMBOL}${PHPV}"