diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-06-11 09:03:46 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-06-11 09:03:46 +0300 |
commit | c9622cb5eca7ea9a78a86f9a8f46614dc3f2b1ce (patch) | |
tree | c2a1922ade4a376fba9336abf7e457ad13f3153f /internal/p10k.zsh | |
parent | b57d6c7ee658e128ff0cb32b7930267cc047a3ce (diff) |
fix signal names printed by status prompt segment
Diffstat (limited to 'internal/p10k.zsh')
-rwxr-xr-x | internal/p10k.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 32bad6be..fa5b2656 100755 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -1421,7 +1421,7 @@ exit_code_or_status() { if [[ "$POWERLEVEL9K_STATUS_HIDE_SIGNAME" = true ]] || (( ec <= 128 )); then _P9K_RETVAL=$ec else - _P9K_RETVAL="SIG${signals[$((sig + 1))]}($((ec - 128)))" + _P9K_RETVAL="SIG${signals[$((ec - 127))]}($((ec - 128)))" fi } |