Customized colorful prompt with git support. Borrowed some code from parrt's git-bash-prompt
- Displays username and ip address
- Detect local change. (* prefix if local content changed)
- Detect local branch.
- Age of the local branch. (Newer/older/forked than remote?)
- Put neat_prompt.py into your file system.
- Add the following line to your ~/.bashrc:
PROMPT_COMMAND='PS1="`python <path-to-the-file>/neat_prompt.py`"'
- In an environment with internet connection, this script will automatically synchronize with remote every 15 seconds, to avoid latency.