completion pour les commandes ruinst, runs, rruns
This commit is contained in:
parent
44f2693636
commit
0afd5d3660
2
.udir
2
.udir
|
@ -16,7 +16,7 @@ kvm_service=
|
||||||
# Faut-il installer le service openvz-fix-etchosts?
|
# Faut-il installer le service openvz-fix-etchosts?
|
||||||
openvz_service=
|
openvz_service=
|
||||||
configure_variables=(dest uninst_utools rm_utools kvm_service 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)
|
config_scripts=(lib/uinst/conf lib/uinst/system_caps.legacy)
|
||||||
install_profiles=true
|
install_profiles=true
|
||||||
profiledir=lib/profile.d
|
profiledir=lib/profile.d
|
||||||
|
|
|
@ -1,8 +1,18 @@
|
||||||
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
# -*- 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 [ -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
|
shopt -u hostcomplete
|
||||||
complete -F _ssh ussh cssh
|
complete -F _ssh ussh cssh
|
||||||
fi
|
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
|
fi
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1
|
2
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue