diff --git a/lib/prompt-init b/lib/prompt-init index e878e74..8c939f4 100755 --- a/lib/prompt-init +++ b/lib/prompt-init @@ -8,11 +8,14 @@ if [[ -a "$OVER_PROMPT_CFG" ]]; then source "$OVER_PROMPT_CFG" fi -function __over_prompt_set_title { - if [[ ${TERM} =~ "screen" ]]; then - print -Pn "\033k\033${@}\033\134" - fi -} +# emits garbage on tmux, where it's not really needed anyway +if [[ ! -n "$TMUX" ]]; then + function __over_prompt_set_title { + if [[ ${TERM} =~ "screen" ]]; then + print -Pn "\033k\033${@}\033\134" + fi + } +fi function __over_prompt_preexec { __over_prompt_set_title "${USER}: ${PWD} -> ${1}"