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 | 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 \ | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue