From db397e5ef5c0baa4db9542c7b2e2044590afdc4e Mon Sep 17 00:00:00 2001 From: cytopia Date: Sun, 4 Nov 2018 06:35:10 +0100 Subject: [PATCH] Fix PHP container PS1 --- Dockerfiles/work/data/bash-devilbox | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfiles/work/data/bash-devilbox b/Dockerfiles/work/data/bash-devilbox index 5fea5f9e..7547f2b5 100644 --- a/Dockerfiles/work/data/bash-devilbox +++ b/Dockerfiles/work/data/bash-devilbox @@ -19,7 +19,7 @@ _clr_usr='\[\e[0;31m\]' _clr_ver='\[\e[0;36m\]' _clr_dir='\[\e[0;34m\]' _clr_off='\[\e[0m\]' -PS1_PHP="$( php -v 2>/dev/null | grep -Eo '^PHP\s([-_.a-z0-9])+' )" +PS1_PHP="$( php -v 2>/dev/null | grep -Eo '^PHP\s([-_.a-zA-Z0-9])+' )" PS1_PHP="${PS1_PHP//PHP[[:space:]]}" PS1_USR="$( whoami )" PS1="${_clr_usr}${PS1_USR}${_clr_off}@${_clr_ver}php-${PS1_PHP}${_clr_off} in ${_clr_dir}\w${_clr_off} \$ "