1
0
Fork 0

fish: ERR trap

This commit is contained in:
Von Random 2023-03-08 19:30:45 +02:00
parent 1ebbec9028
commit 964934bc0d

View file

@ -1,4 +1,11 @@
if status is-interactive if status is-interactive
function postexec --on-event fish_postexec
set -l ret $status
if test $ret -ne 0
printf '\e[31m>>\e[39m exit \e[31m%s\e[39m\n' $ret
end
end
set -l grc_cmds \ set -l grc_cmds \
iptables ipneighbor ipaddr iproute ip nmap netstat \ iptables ipneighbor ipaddr iproute ip nmap netstat \
traceroute tcpdump ss ping \ traceroute tcpdump ss ping \