To show your active Git branch in your command prompt, you will need to do the following:
- If you are on a Mac, you can add the code shown below to your
.bash_profilefile. - If you are on Linux, you will add the code shown below to your
.bashrcfile. - If you are on Windows, you probably aren't reading this because Windows provides this behavior by default.
parse_git_branch() {
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: supervisord | |
| # Required-Start: $remote_fs | |
| # Required-Stop: $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Example initscript | |
| # Description: This file should be used to construct scripts to be | |
| # placed in /etc/init.d. |