https://github.com/zw963/powerbash
A Powerline like PS1, working with BASH.
https://github.com/zw963/powerbash
Last synced: 8 months ago
JSON representation
A Powerline like PS1, working with BASH.
- Host: GitHub
- URL: https://github.com/zw963/powerbash
- Owner: zw963
- Created: 2021-06-19T16:52:41.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2025-10-04T17:25:42.000Z (8 months ago)
- Last Synced: 2025-10-04T19:16:37.019Z (8 months ago)
- Language: Shell
- Size: 39.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A Powerline-Style PS1 for BASH

You probaly need install a font that supports Powerline symbols.
e.g. `PowerlineSymbols.otf`(included in this project) or `FiraCode-Regular-Symbol.otf` etc.
Following code install `PowerlineSymbols.otf` into `~/.local/share/fonts`
```sh
mkdir -p ~/.local/share/fonts
cp PowerlineSymbols.otf ~/.local/share/fonts
fc-cache -rf
```
Note: This script has only been tested with BASH, I've been using it for over ten
years only with a little modifications, and it works quite well for me.
However, it may not work correctly with other shells.
It also integrates automatically with [RVM](https://rvm.io/) and [asdf](https://asdf-vm.com/) and git.
# How to use it.
Add the following lines to your `~/.bashrc`:
```sh
# Git provides this file; some functions from it are used in PS1
source /the/path/of/git-prompt.sh
source /the/path/of/powerbash.sh
```