https://github.com/hanjoes/neat-prompt
  
  
    Pretty and useful bash prompt 
    https://github.com/hanjoes/neat-prompt
  
        Last synced: 3 months ago 
        JSON representation
    
Pretty and useful bash prompt
- Host: GitHub
 - URL: https://github.com/hanjoes/neat-prompt
 - Owner: hanjoes
 - License: mit
 - Created: 2015-07-03T05:56:40.000Z (over 10 years ago)
 - Default Branch: master
 - Last Pushed: 2018-12-23T03:29:14.000Z (almost 7 years ago)
 - Last Synced: 2025-03-05T06:20:50.244Z (8 months ago)
 - Language: Python
 - Homepage:
 - Size: 17.6 KB
 - Stars: 0
 - Watchers: 2
 - Forks: 0
 - Open Issues: 0
 - 
            Metadata Files:
            
- Readme: README.md
 - License: LICENSE
 
 
Awesome Lists containing this project
README
          # neat-prompt
## Introduction
Customized colorful prompt with git support. Borrowed some code from [parrt's git-bash-prompt](https://github.com/parrt/bash-git-prompt)
## Features
### Host Info
- Displays username and ip address
### Git Info
- Detect local change. (* prefix if local content changed)
- Detect local branch.
- Age of the local branch. (Newer/older/forked than remote?)
## How to Install
1. Put neat_prompt.py into your file system.
2. Add the following line to your ~/.bashrc:
```
PROMPT_COMMAND='PS1="`python /neat_prompt.py`"'
```
## Note
1. In an environment with internet connection, this script will automatically synchronize with remote every 15 seconds, to avoid latency.