prompt: improve tmux compatibility (2/2)
This commit is contained in:
parent
dd76c7123b
commit
4490d2690d
1 changed files with 3 additions and 1 deletions
|
@ -9,12 +9,14 @@ if [[ -a "$OVER_PROMPT_CFG" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# emits garbage on tmux, where it's not really needed anyway
|
# emits garbage on tmux, where it's not really needed anyway
|
||||||
if [[ ! -n "$TMUX" ]]; then
|
if [[ -n "$TMUX" ]]; then
|
||||||
function __over_prompt_set_title {
|
function __over_prompt_set_title {
|
||||||
if [[ ${TERM} =~ "screen" ]]; then
|
if [[ ${TERM} =~ "screen" ]]; then
|
||||||
print -Pn "\033k\033${@}\033\134"
|
print -Pn "\033k\033${@}\033\134"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
function __over_prompt_set_title { }
|
||||||
fi
|
fi
|
||||||
|
|
||||||
function __over_prompt_preexec {
|
function __over_prompt_preexec {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue