Skip to content
Branch: master
Go to file

Latest commit

riobard committed 0d63bfd Jun 10, 2019
Allow default color and symbol vars to be overridden


Failed to load latest commit information.


Powerline for Bash in pure Bash script.



  • Git: show branch name, tag name, or unique short hash.
  • Git: show "*" symbol with uncommited modifications.
  • Git: show "↑" symbol and number of commits ahead of remote.
  • Git: show "↓" symbol and number of commits behind remote.
  • Platform-dependent prompt symbols.
  • Color-coded prompt symbol according to previous command execution status.
  • Use Bash builtin when possible to reduce delay. Delay sucks!
  • No need for patched fonts.


Download the Bash script

curl > ~/

And source it in your .bashrc

source ~/

For best result, use Solarized colorscheme for your terminal emulator. Or hack your own colorscheme by modifying the script. It's really easy.


This script is inspired by powerline-shell, which is implemented in Python. Python scripts are much easier to write and maintain than Bash scripts, but invoking Python interpreter introduces noticable delay to draw. I hate delays, so I ported just the part I need to pure Bash script.

The other reason is that I don't like the idea of patching fonts. The font patching mechanism from the original Powerline does not work with the bitmap font (Apple Monaco without anti-aliasing) I use on non-retina screens. I'd rather stick with existing unicode symbols.

See also

  • zsh-powerline: Same thing but for Zsh.
  • powerline: Unified Powerline written in Python. This is the future of all Powerline derivatives.
  • vim-powerline: Powerline in Vim writtien in pure Vimscript. Deprecated.
  • tmux-powerline: Powerline for Tmux written in Bash script. Deprecated.
  • powerline-shell: Powerline for Bash/Zsh/Fish implemented in Python. Might be merged into the unified Powerline.
  • emacs powerline: Powerline for Emacs


Powerline-style Bash prompt in pure Bash script. See also




No releases published


You can’t perform that action at this time.