https://github.com/smarthypercube/fancy-prompt
Hypercube's fancy prompt
https://github.com/smarthypercube/fancy-prompt
Last synced: 11 months ago
JSON representation
Hypercube's fancy prompt
- Host: GitHub
- URL: https://github.com/smarthypercube/fancy-prompt
- Owner: SmartHypercube
- License: mit
- Created: 2024-06-06T03:34:45.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-06T04:54:25.000Z (about 2 years ago)
- Last Synced: 2025-02-10T08:16:25.714Z (over 1 year ago)
- Language: Shell
- Size: 95.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hypercube's fancy prompt

## Features
- [x] Display user, hostname, and path in SSH style.
- [x] Use colors.
- [x] Generate hash-based colors for user and hostname.
- [x] Put command on a separate line.
- [x] Set a concise window title.
- [x] Display command start time, duration, and end time.
- [x] Ring bell after long-running commands finish.
- [x] Display command exit code.
- [x] Add a mark when output doesn't end at the first column.
- [ ] Show running jobs.
- [ ] Display history number.
- [ ] Save and load command history.
- [ ] List items in current directory.
- [ ] Display git status.
## Installation
Download the `fancy-prompt.sh` script:
```bash
wget -O ~/.fancy-prompt.sh https://raw.githubusercontent.com/SmartHypercube/fancy-prompt/master/fancy-prompt.sh
```
Source the script in your `.bashrc`:
```bash
echo 'source ~/.fancy-prompt.sh' >> ~/.bashrc
```
If you set the `TZ` environment variable in your `.bashrc` or `.profile`, make sure to set it before sourcing the script.