This project still works but is no longer being maintained. This would make us cry as well, except the reason we are depricating it is because we have the same functionality in a much easier to use container:
https://www.npmjs.com/package/git-aware-terminal
At Zetta we love Git. It's like adding a third dimension to your world when you've been living in two. However, as powerful as it is, it requires a great deal of effort to learn and be effective at, and even if you are already a git master it still takes extra seconds here and there to maintain your awareness of what status your project is in.
Enter the Git Aware Terminal.
It is a little scripting combined with a little design to yeild a much more usable git experience.
-
cd ~/
(or wherever you'd like the directory to be created) -
git clone https://github.com/zeg-io/git-aware-terminal.git
- OR -
Download and savegit-aware-terminal.bash
to your~/
directory or wherever you like. -
Edit your bash config. In OSX it is located here:
~/.bash_profile
.
Add the following to the top of your file and save it. Clearly you can change the path of the script to wherever you clone the repo to if you'd like.if [ -f ~/git-aware-terminal/git-aware-terminal.bash ]; then . ~/git-aware-terminal/git-aware-terminal.bash fi PROMPT_COMMAND="parse_git_branch" ...
Ensure that you aren't already using
PROMPT_COMMAND=
and if you are, just addparse_git_branch; ...
to it. -
Run
. ~/.bash_profile
to reload your terminal and enable the newly added code, or close your terminal and restart it.