- Display user, hostname, and path in SSH style.
- Use colors.
- Generate hash-based colors for user and hostname.
- Put command on a separate line.
- Set a concise window title.
- Display command start time, duration, and end time.
- Ring bell after long-running commands finish.
- Display command exit code.
- 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.
Download the fancy-prompt.sh
script:
wget -O ~/.fancy-prompt.sh https://raw.githubusercontent.com/SmartHypercube/fancy-prompt/master/fancy-prompt.sh
Source the script in your .bashrc
:
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.