Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hanjoes/neat-prompt

Pretty and useful bash prompt
https://github.com/hanjoes/neat-prompt

Last synced: 2 months ago
JSON representation

Pretty and useful bash prompt

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.