1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-22 04:10:07 +00:00

Squashed 'gitstatus/' changes from 7546f4de..b157d02a

b157d02a treat exit code 159 (SIGSYS) from gistatusd as terminal

git-subtree-dir: gitstatus
git-subtree-split: b157d02a9a89892f228064e06b5a817a24eea9ed
This commit is contained in:
Roman Perepelitsa 2020-07-20 15:06:02 +02:00
parent bf2aa14bec
commit 15818346bf
2 changed files with 2 additions and 2 deletions

View file

@ -165,7 +165,7 @@ function gitstatus_start() {
local ret=$? local ret=$?
trap - ${sig[@]} trap - ${sig[@]}
case "$ret" in case "$ret" in
0|129|130|131|137|141|143) 0|129|130|131|137|141|143|159)
echo -nE $'bye\x1f0\x1e' >&"$fd_out" echo -nE $'bye\x1f0\x1e' >&"$fd_out"
exit "$ret" exit "$ret"
;; ;;

View file

@ -424,7 +424,7 @@ function _gitstatus_daemon"${1:-}"() {
if [[ -x $_gitstatus_zsh_daemon ]]; then if [[ -x $_gitstatus_zsh_daemon ]]; then
HOME=$home $_gitstatus_zsh_daemon -G $_gitstatus_zsh_version "${(@)args}" >&$pipe_fd HOME=$home $_gitstatus_zsh_daemon -G $_gitstatus_zsh_version "${(@)args}" >&$pipe_fd
local -i ret=$? local -i ret=$?
[[ $ret == (0|129|130|131|137|141|143) ]] && return ret [[ $ret == (0|129|130|131|137|141|143|159) ]] && return ret
fi fi
(( ! _gitstatus_zsh_downloaded )) || return (( ! _gitstatus_zsh_downloaded )) || return