Powerline for Bash in pure Bash script.
- Git branch: display current git branch name, or short SHA1 hash when the head is detached
- Git branch: display "+" symbol when current branch is changed but uncommited
- Git branch: display "⇡" symbol and the difference in the number of commits when the current branch is ahead of remote
- Git branch: display "⇣" symbol and the difference in the number of commits when the current branch is behind of remote
- Fast execution (no noticable delay)
- No need for patched fonts
Download the Bash script.
$ curl https://raw.githubusercontent.com/nikkigalusha/bash-powerline/master/bash-powerline.sh > ~/.bash-powerline.sh
Then source it in your .bash_profile
(or .bashrc
).
$ echo -e "\nsource ~/.bash-powerline.sh" >> ~/.bash_profile
This command line prompt is based on the phenomenal bash-powerline by riobard.