From 0f0b602415961aa9ca069c9719a0fbb4bbb9941f Mon Sep 17 00:00:00 2001 From: dana Date: Fri, 5 Jan 2018 14:26:17 -0600 Subject: 42231: new completion functions for simple utilities belonging to the 'Darwin' and 'Linux' groups. --- Completion/Linux/Command/_ldconfig | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Completion/Linux/Command/_ldconfig (limited to 'Completion/Linux/Command/_ldconfig') diff --git a/Completion/Linux/Command/_ldconfig b/Completion/Linux/Command/_ldconfig new file mode 100644 index 000000000..5f4802f91 --- /dev/null +++ b/Completion/Linux/Command/_ldconfig @@ -0,0 +1,35 @@ +#compdef ldconfig ldconfig.real + +local ret=1 +local -a context line state state_descr +local -A opt_args + +_arguments -s -S : \ + '(x -v --verbose)'{-v,--verbose}'[output verbosely]' \ + '(x)*: :->files' \ + + x \ + '(: -)'{-\?,--help}'[display help information]' \ + '(: -)'{-p,--print-cache}'[display libraries in current cache]' \ + '(: -)--usage[display brief usage information]' \ + '(: -)'{-V,--version}'[display version information]' \ + + l \ + '(x o)-l[manually link individual libraries (library mode)]' \ + + o \ + '(x l -c --format)'{-c+,--format=}'[specify cache format]:cache format:(old new compat)' \ + '(x l)-C+[specify cache file to use instead of /etc/ld.so.cache]:cache file:_files' \ + '(x l)-f+[specify configuration file to use instead of /etc/ld.so.conf]:configuration file:_files' \ + '(x l -i --ignore-aux-cache)'{-i,--ignore-aux-cache}'[ignore auxiliary cache file]' \ + '(x l -N)-n[process only directories specified on command line (implies -N)]' \ + '(x l)-N[do not rebuild cache]' \ + '(x l)-r+[specify root directory]:root directory:_directories' \ + '(x l)-X[do not update symbolic links]' \ +&& ret=0 + +[[ $state == files ]] && +if [[ -n ${opt_args[(I)l--l]} ]]; then + _object_files && ret=0 +else + _directories && ret=0 +fi + +return ret -- cgit 1.4.1