16 lines
No EOL
380 B
Text
16 lines
No EOL
380 B
Text
function powerline_precmd() {
|
|
PS1="$(/home/truck/stuff/powerline-shell/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 |