- Kubuntu 16.04.2 TLS
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial
- Shell environment: Bash
- Terminal application : Konsole
- Default console font: Monospace
- https://github.com/banga/powerline-shell
- https://powerline.readthedocs.org/en/latest/installation/linux.html#fontconfig
- https://gist.github.com/tos-kamiya/f7c36dc8ffd2d0aaec43
cd ~
git clone https://github.com/banga/powerline-shell.git
cd cd powerline-shell/
cp config.py.dist config.py
./install.py
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
mv PowerlineSymbols.otf ~/.fonts/
mkdir -p ~/.config/fontconfig/conf.d/
mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
fc-cache -vf ~/.fonts/
nano ~/.bashrc
Add the following to the end of the file
# Powerline shell
function _update_ps1() {
PS1="$(~/powerline-shell/powerline-shell.py --cwd-mode dironly --cwd-max-depth 1 --cwd-max-dir-size 50 --mode patched $? 2> /dev/null)"
}
# Apply PowerShell '_update_ps1' function
export PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
Logout and login.
Note: if it you haven't get the proper look, change the terminal profile font
is that working with Ubuntu 17.10 ?