diff --git a/share/functions/__fish_print_hostnames.fish b/share/functions/__fish_print_hostnames.fish index 2f192c93a..93d5e3e64 100644 --- a/share/functions/__fish_print_hostnames.fish +++ b/share/functions/__fish_print_hostnames.fish @@ -9,9 +9,8 @@ function __fish_print_hostnames -d "Print a list of known hostnames" # Ignore zero ips getent hosts | string match -r -v '^0.0.0.0' | string replace -r '[0-9.]*\s*' '' | string split " " else if test -r /etc/hosts - # Ignore commented lines and functionally empty lines - string match -r -v '^\s*0.0.0.0|^\s*#|^\s*$'