Skip to content

SmartHypercube/fancy-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hypercube's fancy prompt

Features

  • 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.

Installation

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.

About

Hypercube's fancy prompt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages