aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_print_hostnames.fish
diff options
context:
space:
mode:
authorGravatar David Adam (zanchey) <zanchey@ucc.gu.uwa.edu.au>2012-12-07 11:18:01 +0800
committerGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-12-10 01:30:40 +0530
commit60435f99b9eddc6c427df11ffce3e9f67ea7abc4 (patch)
treec744a285800ebce9ae3a8a7de29c2fc9951f2feb /share/functions/__fish_print_hostnames.fish
parent332cda6b166410a92cac057688fa6bb1076bb253 (diff)
fix typo in hostname completion
Diffstat (limited to 'share/functions/__fish_print_hostnames.fish')
-rw-r--r--share/functions/__fish_print_hostnames.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/__fish_print_hostnames.fish b/share/functions/__fish_print_hostnames.fish
index 6f4e6728..1dbc9e52 100644
--- a/share/functions/__fish_print_hostnames.fish
+++ b/share/functions/__fish_print_hostnames.fish
@@ -4,7 +4,7 @@ function __fish_print_hostnames -d "Print a list of known hostnames"
# Print all hosts from /etc/hosts
if test -x /usr/bin/getent
getent hosts | tr -s ' ' ' ' | cut -d ' ' -f 2- | tr ' ' '\n'
- elseif test -f /etc/hosts
+ else if test -f /etc/hosts
tr -s ' \t' ' ' < /etc/hosts | sed 's/ *#.*//' | cut -s -d ' ' -f 2- | sgrep -o '[^ ]*'
end
# Print nfs servers from /etc/fstab