zer0prompt (bash prompt)

zer0prompt is a Bash prompt I created after discovering Phil!’s ZSH Prompt. I liked how Phil!’s prompt looked and some of it’s various features but I’m a happy Bash shell user with no need to switch to Z shell. I searched the Internet for various Bash prompts similar to the Phil! ZSH prompt without luck. I tried Bashish but felt there was too much extra going on “under the hood” for what I needed.

It was time to roll up my sleeves and write my own, the way I wanted it and so zer0prompt was born!


  • 18 different colour themes
  • a TERMWIDE prompt, fills the width of the terminal no matter how wide.
  • 2 line prompt
  • the following info is always shown = user, host, current tty, working directory, time, user identifier
  • truncates the shown working directory when it’s wider then the terminal.
  • shows /home/[user] as a tilde ~
  • continuation prompt
  • when logged in as root user, display info in red as a visual reminder.
  • displays the exit code when a command fails
  • sets xterm/rxvt terminal titles (shows username, working directory, and terminal size)
  • user selectable colour themes, info colours, time format, and line graphics
  • auto detection of supported line graphics mode (standard or fallback)
  • user can manually set “no colour mode” and/or “graphics fallback mode”
  • very easy to install without making a mess of your .bashrc
  • tries not to pollute your bash environment!



zer0prompt can be downloaded fromĀ github.
Installation and configuration instructions are also available on github in the README.md file.

Other Info:

original Arch Linux forum post