2013-09-30 06:40:51 +04:00
|
|
|
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
|
|
|
|
2013-09-30 11:48:13 +04:00
|
|
|
[ -n "$BASH_COMPLETION" ] || source "@@dest@@/ulib/bash_completion"
|
2013-09-30 06:40:51 +04:00
|
|
|
if [ -n "$BASH_COMPLETION" ]; then
|
2013-09-30 11:48:13 +04:00
|
|
|
if [ -n "$BASH_COMPLETION_DIR" -a -f "$BASH_COMPLETION_DIR/ssh" ]; then
|
2013-09-30 06:40:51 +04:00
|
|
|
shopt -u hostcomplete
|
|
|
|
complete -F _ssh ussh cssh
|
|
|
|
fi
|
2013-09-30 11:48:13 +04:00
|
|
|
|
|
|
|
function _nutools_h() {
|
|
|
|
local cur prev
|
|
|
|
_get_comp_words_by_ref cur prev
|
|
|
|
if [ "$prev" == "-h" -o "$prev" == "-H" ]; then
|
|
|
|
_known_hosts_real "$cur"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
complete -F _nutools_h -o default ruinst runs rruns
|
2013-09-30 06:40:51 +04:00
|
|
|
fi
|