Bash

My bashrc https://github.com/waynepai/ubuntu_setup/blob/master/bashrc

Powerline shell

Quick install

cd ~
git clone https://github.com/milkbikis/powerline-shell
cd powerline-shell
./install.py
ln ~/powerline-shell.py ~/powerline-shell/powerline-shell.py

And add following to .bashrc

function _update_ps1() {
    PS1="$(~/powerline-shell.py cwd-max-depth 3 $? 2> /dev/null)"
}

if [ "$TERM" != "linux" ]; then
    PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi

Detail see the powerline-shell

results matching ""

    No results matching ""