Alter the zshrc to load powerline from initscript

This commit is contained in:
HELLO I REQUIRE CHANGING 2017-04-28 12:11:10 +03:00
parent a5e19b0898
commit 8b874e6e3e

22
zshrc
View file

@ -58,27 +58,11 @@ fi
. ~/bin/aliases
prompt fire 125 234 084 054 020
#prompt fire 178 142 106 070 034
prompt steeef
# powerline
#source ~/.local/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh
function powerline_precmd() {
PS1="$(~/sturf/banga-powerline/powerline-shell.py $? --shell zsh 2> /dev/null)"
}
function install_powerline_precmd() {
for s in "${precmd_functions[@]}"; do
if [ "$s" = "powerline_precmd" ]; then
return
fi
done
precmd_functions+=(powerline_precmd)
}
if [ "$TERM" != "linux" ]; then
install_powerline_precmd
fi
source ~/bin/powerline_init
alias t=todo.sh