Favorite CLI stuff

Powerline and Centos 7

yum -y install epel-release
yum -y install python-pip vim-enhanced git wget
pip install powerline-status

bash

~/.bashrc – adjust powerline path as necessary or /etc/profile.d/powerline.sh

# I like vi keybindings.  You may not.
set -o vi
# if powerline is installed, then use it
command -v powerline-daemon &>/dev/null

powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. /usr/lib/python2.7/site-packages/powerline/bindings/bash/powerline.sh
bash/powerline.sh

Adding git branch info to bash powerline using the “default_leftonly” theme

https://leifmadsen.wordpress.com/2015/09/09/configuring-powerline-to-show-working-git-branch/

Continue reading “Favorite CLI stuff”