diff options
author | m0viefreak <m0viefreak.cm@googlemail.com> | 2016-03-13 22:51:11 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2016-03-21 09:43:29 +0000 |
commit | cbc44bd64a39649b7c73123c6eb85559d8d26f6c (patch) | |
tree | e1ac61af4face736858d12d956f2a9f40bc4bf99 /Src/vincent.zsh | |
parent | ee2f0dbed113742cd9f6f5574ab2e2d280a0de34 (diff) | |
download | zsh-cbc44bd64a39649b7c73123c6eb85559d8d26f6c.tar.gz zsh-cbc44bd64a39649b7c73123c6eb85559d8d26f6c.tar.xz zsh-cbc44bd64a39649b7c73123c6eb85559d8d26f6c.zip |
38145: ZLE parameters for isearch and completion suffixes
Diffstat (limited to 'Src/vincent.zsh')
-rw-r--r-- | Src/vincent.zsh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Src/vincent.zsh b/Src/vincent.zsh new file mode 100644 index 000000000..65da7d764 --- /dev/null +++ b/Src/vincent.zsh @@ -0,0 +1,30 @@ +updprompt() +{ + psvar[2]="" + + unset _trapchld_called + local njobs jobstr + njobs=$#jobstates + [[ $njobs -gt 1 ]] && jobstr="s" + [[ $njobs -ge 1 ]] && jobstr=" $njobs job$jobstr |" + + echo 1 > /dev/tty + + [[ -n $TTY && $TERM == (xterm*|dtterm|mlterm|rxvt*|screen*) ]] && + { + [[ $TERM == screen* ]] || print -nP "\e]1;%m${ptsn:+[$ptsn]}:%.\x07" + print -nP "\e]2;${jobstr}${WINTITLE:+ $WINTITLE |} %n@%m - %~ | %y\x07" + } > /dev/tty + + echo 2 > /dev/tty +} + +TRAPCHLD() +{ + echo SIGCHLD 1 > /dev/tty + if [[ -o interactive && -n $TTY ]] then + updprompt + typeset -g _trapchld_called=1 + fi + echo SIGCHLD 2 > /dev/tty +} |