#! /bin/zsh OVER_PROMPT_CFG="/etc/over/prompt.cfg" if [[ -a "$OVER_PROMPT_CFG" ]]; then source "$OVER_PROMPT_CFG" fi function set_title { if [[ ${TERM} == "screen-bce" || ${TERM} == "screen" ]]; then print -Pn "\033k\033${@}\033\134" fi } function preexec { local -a cmd cmd=(${(z)1}) set_title "${PWD}: ${cmd}" } function precmd { python3 ./render.py $? $COLUMNS 1.25 2.5 0.15 0.05 set_title "${PWD}" } unset OVER_PROMPT_CFG unset PS1 unset RPS1