add rsh, rlogin & ftp to commands that use _known_hosts()

This commit is contained in:
ianmacd 2002-02-13 18:23:52 +00:00
parent 97369cc352
commit b312694b3e

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05a
#
# $Id: bash_completion,v 1.110 2002/02/13 19:20:59 ianmacd Exp $
# $Id: bash_completion,v 1.111 2002/02/13 19:23:52 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -79,9 +79,7 @@ complete -A stopped -P '%' bg
# other job commands
complete -j -P '%' fg jobs disown
# network commands complete with hostname
complete -A hostname ssh rsh telnet rlogin ftp ping fping host traceroute \
nslookup
complete -F _known_hosts traceroute ping fping telnet host nslookup
# export and others complete with shell variables
complete -v readonly unset
@ -1092,7 +1090,8 @@ _known_hosts()
return 0
}
complete -F _known_hosts traceroute ping fping telnet host nslookup
complete -F _known_hosts traceroute ping fping telnet host nslookup rsh \
rlogin ftp
# ssh(1) completion. Should be able to improve this with user@host notation,
# but the '@' seems to trigger some kind of bug in bash's completion.