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

fix signal names printed by status prompt segment

This commit is contained in:
romkatv 2019-06-11 08:03:46 +02:00
parent b57d6c7ee6
commit c9622cb5ec

View file

@ -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
}