fish-shell/share
Mahmoud Al-Qudsi 06317f0a98 Optimize __fish_print_hostnames hosts file loading/parsing
Reordering the `getent hosts` and read from `/etc/hosts` combined with
minimizing shelling and job invocations for parsing the output results
in a profiled and benchmarked ~42% decrease in the time it takes to run,
and that's on a machine with a very small hosts list in the first place.

This update also fixes the hadling of IPv6 addresses in the hosts
output, which were previously ignored, and ignores 127.* loopback
addresses in addition to the 0.0.0.0 address (plus adds support for
shorter IPv4 notations).
2019-09-05 22:44:09 -05:00
..
completions fix compatibility with BSD sed 2019-09-03 15:35:04 +08:00
functions Optimize __fish_print_hostnames hosts file loading/parsing 2019-09-05 22:44:09 -05:00
groff
tools Fix status code coloring for nim prompt 2019-07-07 19:36:17 +02:00
__fish_build_paths.fish.in
config.fish Make sure nop command always suceeds 2019-08-03 18:14:12 +02:00
lynx.lss