Powerline is a visual extension for the shell and vim.

To install it, open a terminal and run this command

# dnf install powerline

and add the following ie to user's .bashrc or to a file in /etc/profile.d/ to activate powerline on Terminal and keep/set your prompt on console

case "$TERM" in
xterm*|rxvt*)
    if [ -f `which powerline-daemon` ]; then
        powerline-daemon -q
        POWERLINE_BASH_CONTINUATION=1
        POWERLINE_BASH_SELECT=1
        . /usr/share/powerline/bash/powerline.sh
    fi
    ;;
*)
        if [ "$LOGNAME" = root ] || [ "`id -u`" -eq 0 ] ; then
            PS1='[\[\033[01;31m\]\H\[\033[01;34m\] \W\[\033[00m\]]\[\033[01;34m\]\$\[\033[00m\] '
        else
            PS1='[\[\033[01;32m\]\u@\H\[\033[01;34m\] \w\[\033[00m\]]\[\033[01;34m\]\$\[\033[00m\] '
        fi
    ;;
esac

Save and source the file or re-login.

Previous Post