add rsh, rlogin & ftp to commands that use _known_hosts()
This commit is contained in:
parent
97369cc352
commit
b312694b3e
@ -1,6 +1,6 @@
|
|||||||
# bash_completion - some programmable completion functions for bash 2.05a
|
# 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>
|
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||||
#
|
#
|
||||||
@ -79,9 +79,7 @@ complete -A stopped -P '%' bg
|
|||||||
# other job commands
|
# other job commands
|
||||||
complete -j -P '%' fg jobs disown
|
complete -j -P '%' fg jobs disown
|
||||||
|
|
||||||
# network commands complete with hostname
|
complete -F _known_hosts traceroute ping fping telnet host nslookup
|
||||||
complete -A hostname ssh rsh telnet rlogin ftp ping fping host traceroute \
|
|
||||||
nslookup
|
|
||||||
|
|
||||||
# export and others complete with shell variables
|
# export and others complete with shell variables
|
||||||
complete -v readonly unset
|
complete -v readonly unset
|
||||||
@ -1092,7 +1090,8 @@ _known_hosts()
|
|||||||
|
|
||||||
return 0
|
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,
|
# 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.
|
# but the '@' seems to trigger some kind of bug in bash's completion.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user