mahbinstuff/powerline-shell-init

17 lines
491 B
Text
Executable file

function powerline_precmd() {
# PS1="$(~/powerline-shell.py $? --shell zsh 2> /dev/null)"
PS1="$(~/bin/powerline-shell/powerline-shell.py $? --colorize-hostname --cwd-max-depth 3 --cwd-max-dir-size 6 --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