completion pour les commandes ruinst, runs, rruns

This commit is contained in:
Jephté Clain 2013-09-30 11:48:13 +04:00
parent 44f2693636
commit 0afd5d3660
4 changed files with 1385 additions and 3 deletions

2
.udir
View File

@ -16,7 +16,7 @@ kvm_service=
# Faut-il installer le service openvz-fix-etchosts?
openvz_service=
configure_variables=(dest uninst_utools rm_utools kvm_service openvz_service)
configure_dest_for=(bashrc profile lib/uinst/conf lib/uinst/rootconf lib/profile.d/nutools lib/init.d/kvm-stop-all legacy/sysinc/utools legacy/sysinc/system_caps legacy/sysinc/private/init)
configure_dest_for=(bashrc profile lib/uinst/conf lib/uinst/rootconf lib/profile.d/nutools lib/bashrc.d/bash_completion.nutools lib/init.d/kvm-stop-all legacy/sysinc/utools legacy/sysinc/system_caps legacy/sysinc/private/init)
config_scripts=(lib/uinst/conf lib/uinst/system_caps.legacy)
install_profiles=true
profiledir=lib/profile.d

View File

@ -1,8 +1,18 @@
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
[ -n "$BASH_COMPLETION" ] || source "@@dest@@/ulib/bash_completion"
if [ -n "$BASH_COMPLETION" ]; then
if [ -f "$BASH_COMPLETION_DIR/ssh" ]; then
if [ -n "$BASH_COMPLETION_DIR" -a -f "$BASH_COMPLETION_DIR/ssh" ]; then
shopt -u hostcomplete
complete -F _ssh ussh cssh
fi
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
fi

View File

@ -1 +1 @@
1
2

1372
ulib/bash_completion Normal file

File diff suppressed because it is too large Load Diff