mahbinstuff/powerline-shell-init
Howland Owl a92c39c710 Revert "Merge branch 'home' into 'fixthatshit'"
This reverts commit 1639a576f4, reversing
changes made to cc75e76c65.
2016-12-09 21:22:01 +02:00

16 lines
381 B
Text

function powerline_precmd() {
PS1="$(/home/truck/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