Skip to content

Commit

Permalink
Fix PHP container PS1
Browse files Browse the repository at this point in the history
  • Loading branch information
cytopia committed Nov 4, 2018
1 parent 4569855 commit db397e5
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 db397e5

Please sign in to comment.