#!/usr/bin/env fish
# -*-  mode:fish; tab-width:4  -*-

function FLSEG_SIGSTATUS

	if [ $FLINT_STATUS -gt 128 ]; and [ $FLINT_STATUS -lt 160 ]
		FLINT_CLOSE $FLCLR_STATUS_BG $FLCLR_STATUS_FG
		printf SIG(kill -l $FLINT_STATUS)
	else if [ $FLINT_STATUS -eq 126 ]
		FLINT_CLOSE $FLCLR_STATUS_BG $FLCLR_STATUS_FG
		printf "NOEXEC"
	else if [ $FLINT_STATUS -eq 127 ]
		FLINT_CLOSE $FLCLR_STATUS_BG $FLCLR_STATUS_FG
		printf "NFOUND"
	else if [ $FLINT_STATUS -gt 0 ]
		FLINT_CLOSE $FLCLR_STATUS_BG $FLCLR_STATUS_FG
		printf $FLINT_STATUS
	end

end

#!/usr/bin/env fish
# -*-  mode:fish; tab-width:4  -*-

function FLSEG_SIGSTATUS

	if [ $FLINT_STATUS -gt 128 ]; and [ $FLINT_STATUS -lt 160 ]
		FLINT_CLOSE $FLCLR_STATUS_BG $FLCLR_STATUS_FG
		printf SIG(kill -l $FLINT_STATUS | tr '[a-z]' '[A-Z]')
	else if [ $FLINT_STATUS -eq 126 ]
		FLINT_CLOSE $FLCLR_STATUS_BG $FLCLR_STATUS_FG
		printf "NOEXEC"
	else if [ $FLINT_STATUS -eq 127 ]
		FLINT_CLOSE $FLCLR_STATUS_BG $FLCLR_STATUS_FG
		printf "NFOUND"
	else if [ $FLINT_STATUS -gt 0 ]
		FLINT_CLOSE $FLCLR_STATUS_BG $FLCLR_STATUS_FG
		printf $FLINT_STATUS
	end

end

Update for OSX, show the SIGNAME in UPPERCASE as `kill -l $SIG` return SIGNAME in lowercase
SIGSTATUS: Update for OSX, show the SIGNAME in UPPERCASE as `kill -l $SIG` return SIGNAME in lowercase

0rax/fishline,jerr0328/fishline