fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
c12f853db
master
1function __fish_iftop_sort_orders 2echo -e"2s\tSort by 2s traffic average" 3echo -e"10s\tSort by 10s traffic average (default)" 4echo -e"40s\tSort by 40s traffic average" 5echo -e"source\tSort by source address" 6echo -e"destination\tSort by destination address" 7end 8 9complete -c iftop -f 10 11complete -c iftop -s h -d"Print a summary of usage" 12complete -c iftop -s n -d"Don't do hostname lookups" 13complete -c iftop -s N -d"Don't resolve port number to service names" 14complete -c iftop -s p -d"Run in promiscuous mode" 15complete -c iftop -s P -d"Turn on port display" 16complete -c iftop -s l -d"Include link-local IPv6 addresses" 17complete -c iftop -s b -d"Don't display bar graphs of traffic" 18complete -c iftop -s m -x -d"Set the upper limit for the bandwidth scale" 19complete -c iftop -s B -d"Show bandwidth rates in bytes/s rather than bits/s" 20complete -c iftop -s i -xa"(__fish_print_interfaces)" -d"Listen to packets on interface" 21complete -c iftop -s f -x -d"Use filter code to select the packets to count" 22complete -c iftop -s F -x -d"Filter to only specified IPv4 network" 23complete -c iftop -s G -x -d"Filter to only specified IPv6 network" 24complete -c iftop -s c -r -d"Use specified config file" 25complete -c iftop -s o -xa"(__fish_iftop_sort_orders)" -d"Sort by specified column" 26 27complete -c iftop -s t -d"Use text interface without ncurses" 28complete -c iftop -s L -x -d"Number of lines to print with -t" 29complete -c iftop -s s -x -d"With -t, print single output after specific number of seconds"