|
4 years ago -1 |
Howto Setup Powerline for your Terminal Prompt
VERIFIED in Mint 19.3 and 20.0
Click here for screenshot :: [ https://imgur.com/a/1p9olUC ]
(1) Install powerline :: [ sudo apt install powerline ]
(2) Setup your $SHELL ::
* bash [ https://powerline.readthedocs.io/en/master/usage/shell-prompts.html#bash-prompt ]
Edit ~/.bashrc to insert the following (code snippet) section and save the file.
Note: You can place this section at the bottom of ~/.bashrc
-------------------- BEGIN ~/.bashrc code snippet --------------------
# powerline
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
source /usr/share/powerline/bindings/bash/powerline.sh
--------------------- END ~/.bashrc code snippet --------------------
* fish [ https://powerline.readthedocs.io/en/master/usage/shell-prompts.html#fish-prompt ]
Create the file ~/.config/fish/config.fish and Edit the file to insert the following
(code snippet) section and save the file.
--------------------- BEGIN ~/.config/fish/config.fish code snippet --------------------
set fish_function_path $fish_function_path "/usr/share/powerline/bindings/fish"
powerline-setup
--------------------- END ~/.config/fish/config.fish code snippet --------------------
NOTE: No need to logout and log back in. Just close your terminals and re-open terminal and enjoy your new powerline prompt!