powerline-style bash prompt in pure bash script.
- 'powerbash' command for configuration
- Bash completion support (powerbash [tab])
- Displays username, hostname, path, git information, virtual environment, jobs count, symbol ($/#), return code
- Color code for root, sudo, jobs count, return code
- Git information:
- display current git branch name, or short SHA1 hash when the head is detached
- display "+" symbol when current branch is changed but uncommited
- display "⇡" symbol and the difference in the number of commits when the current branch is ahead of remote
- display "⇣" symbol and the difference in the number of commits when the current branch is behind of remote
- Three directory shortening modes (/full/path/to/no/where):
- /full/.../no/where
- ..o/no/where
- /f/p/t/n/where
- Fast execution (no noticable delay)
- No need for patched fonts
Per-User: curl -s https://get.powerbash.org | bash
Global: curl -s https://get.powerbash.org | sudo bash
Download powershell.sh
:
curl -Ls https://raw.githubusercontent.com/napalm255/powerbash/master/powerbash.sh -o ~/.bashrc.d/powerbash.sh
Download powershell.sh
:
curl -Ls https://raw.githubusercontent.com/napalm255/powerbash/master/powerbash.sh -o ~/.local/bin/powerbash.sh
And source it in '~/.bashrc' for your user account:
source ~/.local/bin/powerbash.sh
Download the Bash script:
sudo curl -Ls https://raw.githubusercontent.com/napalm255/powerbash/master/powerbash.sh -o /etc/profile.d/z_powerbash.sh
Note: powerbash is most consistent when it is the last profile.d script to run.