fish-shell/share/functions/__fish_print_addresses.fish
Fabian Homborg b85a8bbbfe Rename sgrep to __fish_sgrep
Makes it harder to cause issues with aliases, see fish-shell#2245
2015-09-09 20:55:04 +02:00

4 lines
166 B
Fish

function __fish_print_addresses --description "Print a list of known network addresses"
/sbin/ifconfig | __fish_sgrep 'inet addr'|cut -d : -f 2|cut -d ' ' -f 1
end