Skip to content

Commit

Permalink
Merge pull request #61 from devilbox/release-0.47
Browse files Browse the repository at this point in the history
Fix PHP container PS1
  • Loading branch information
cytopia authored Nov 4, 2018
2 parents 4569855 + db397e5 commit 867c112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfiles/work/data/bash-devilbox
Original file line number Diff line number Diff line change
Expand Up @@ -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} \$ "
Expand Down

0 comments on commit 867c112

Please sign in to comment.