Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hanjoes/neat-prompt
- Owner: hanjoes
- License: mit
- Created: 2015-07-03T05:56:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-23T03:29:14.000Z (about 6 years ago)
- Last Synced: 2023-02-26T04:11:58.504Z (almost 2 years 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.