fish: ERR trap
This commit is contained in:
parent
1ebbec9028
commit
964934bc0d
1 changed files with 7 additions and 0 deletions
|
@ -1,4 +1,11 @@
|
|||
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 \
|
||||
iptables ipneighbor ipaddr iproute ip nmap netstat \
|
||||
traceroute tcpdump ss ping \
|
||||
|
|
Loading…
Reference in a new issue