From 1c28d8c21fe9624b1b9b2fc8293b3c462fa61ecf Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 6 Jul 2000 12:40:00 +0000 Subject: updates and additions to completions for AIX commands --- Completion/AIX/_smit | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Completion/AIX/_smit') diff --git a/Completion/AIX/_smit b/Completion/AIX/_smit index 18a901148..48397b5b0 100644 --- a/Completion/AIX/_smit +++ b/Completion/AIX/_smit @@ -1,5 +1,7 @@ #compdef smit smitty +local state line expl curcontext="$curcontext" + _arguments -C \ '-s[specify smit.script file]:smit.script file:_files' \ '-l[specify smit.log file]:smit.log file:_files' \ @@ -15,5 +17,11 @@ _arguments -C \ '-t[generate trace information]' \ '-v[verbose]' \ '-x[do not run any execute commands]' \ - '-X[do not run any commands]' + '-X[do not run any commands]' \ + '1:fastpath:->fastpath' && return 0 + +[[ "$state" = fastpath ]] && + _wanted fastpaths expl 'fast path' compadd \ + $(odmget sm_cmd_hdr sm_name_hdr|sed -n 's/^ id = \"\(.*\)\"/\1/p') + -- cgit 1.4.1