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
# Add this to your .bashrc | |
# Will produce command line prompts like in git repositories | |
# <username>@<hostname>:<directory>(branch) $ | |
# and like this elsewhere. | |
# <username>@<hostname>:<directory> $ | |
# If there are unstaged changes in the repository, there will be an asterisk next to the branch name: | |
# <username>@<hostname>:<directory>(branch) $ | |
# taken from https://gist.github.com/johnpbloch/3406013 | |
# Trim path https://unix.stackexchange.com/a/26950/270668 |