Merge pull request #2472 from collierscott/add-gitprompt

Add bash-git-prompt for more informative prompts for git repos
This commit is contained in:
Shao Yu-Lung (Allen)
2020-02-12 09:17:13 +08:00
committed by GitHub
5 changed files with 58 additions and 0 deletions

View File

@ -2122,6 +2122,25 @@ AST exposes the abstract syntax tree generated by PHP 7+. This extension is requ
<br>
<a name="Install-Bash-Git-Prompt"></a>
## Install Git Bash Prompt
A bash prompt that displays information about the current git repository. In particular the branch name, difference with remote branch, number of files staged, changed, etc.
1 - Open the `.env` file
2 - Search for the `WORKSPACE_INSTALL_GIT_PROMPT` argument under the Workspace Container
3 - Set it to `true`
4 - Re-build the container `docker-compose build workspace`
**Note** You can configure bash-git-prompt by editing the `workspace/gitprompt.sh` file and re-building the workspace container.
For configuration information, visit the [bash-git-prompt repository](https://github.com/magicmonty/bash-git-prompt).
<br>
<a name="phpstorm-debugging"></a>
## PHPStorm Debugging Guide