Dear command line fans, here is my 2 cents, powerline configuration.
All you need is to add these two configuration. They are theme (multiline) and colorscheme.
And alter config.json
.
I haven’t done anything yet for tmux, and other powerline capabilities.
Reading
Always look at the official documentation first
Installing
Using package management is straightforward.
Arch
Manjaro
Debian
Font
You can download manually based on documentation, or use package management above.
Arch/Manjaro
Install Font package
Let’s check.
Debian
Font Package automaticaly installed as dependency.
Note: Terminus Font also works.
Shell Prompt
“Where and how can I set the PS1
variable for Powerline bash?”
A good simple question.
The answer is in powerline manual documentation
There is no need to explicitly export PS1 in bash.
Bash
Arch/Manjaro (root/user)
Debian (root/user)
Fish
Here is a summary, with nice powerline-in-vim colour-scheme.
-
Terminal Above: .bashrc only (with ansi color art)
-
Terminal Below: .bashrc with powerline
Vim
Arch/Manjaro
No need to alter .vimrc
configuration in Arch/Manjaro
Debian
Since no official plugin for ViM, whe have to do it with PIP.
And insert this line to .viwmrc
Reading
–
Customization
Main Config
Here is the place, you configure which colorscheme and theme you are using.
Colorschemes
Self Explanatory
- https://gitlab.com/epsi-rns/dotfiles/blob/master/config/powerline/colorschemes/epsi.json
Theme
It define what widget, ad their position. It is going to be your choice, of what segment you need to show in your shell.
- https://gitlab.com/epsi-rns/dotfiles/blob/master/config/powerline/themes/shell/epsi.json
Note that BASH do not support right segment. Right segment is very useful when working with git. I usually switch to FISH, everytime I’m doing git.
You can see the sample in top of this this article.
Happy terminal customizing
Reading: