diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2002-03-13 09:28:04 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2002-03-13 09:28:04 +0000 |
commit | 45f9a36216637075172d0bdf7ad8e18fad34c42e (patch) | |
tree | 8505f11011505b00e8cef1142b11c2b2e94e17e9 /Completion/Unix/Type | |
parent | 799b34d817a77244e9e371f6d5f1b01aa171214c (diff) | |
download | zsh-45f9a36216637075172d0bdf7ad8e18fad34c42e.tar.gz zsh-45f9a36216637075172d0bdf7ad8e18fad34c42e.tar.xz zsh-45f9a36216637075172d0bdf7ad8e18fad34c42e.zip |
remove that -T option to compdef again and instead use comma-separated sub-contexts both for function and style lookup (16819)
Diffstat (limited to 'Completion/Unix/Type')
-rw-r--r-- | Completion/Unix/Type/_files | 2 | ||||
-rw-r--r-- | Completion/Unix/Type/_locales | 11 | ||||
-rw-r--r-- | Completion/Unix/Type/_printers | 2 | ||||
-rw-r--r-- | Completion/Unix/Type/_terminals | 2 | ||||
-rw-r--r-- | Completion/Unix/Type/_time_zone | 2 |
5 files changed, 15 insertions, 4 deletions
diff --git a/Completion/Unix/Type/_files b/Completion/Unix/Type/_files index 4a57cdbc7..add41dbbe 100644 --- a/Completion/Unix/Type/_files +++ b/Completion/Unix/Type/_files @@ -1,4 +1,4 @@ -#compdef -T redirs -default- +#compdef -redirect-,-default-,-default- local opts tmp glob pat pats expl tag i def descr end ign ret=1 match tried local type sdef diff --git a/Completion/Unix/Type/_locales b/Completion/Unix/Type/_locales new file mode 100644 index 000000000..ad5741c8a --- /dev/null +++ b/Completion/Unix/Type/_locales @@ -0,0 +1,11 @@ +#compdef -value-,LANG,-default- -P -value-,LC_*,-default- + +local locales + +if (( $+commands[locale] )); then + locales=( $(_call_program locales locale -a) ) +else + locales=( /usr/lib/locale/*(:t) ) +fi + +_wanted locales expl locale compadd "$@" -a locales diff --git a/Completion/Unix/Type/_printers b/Completion/Unix/Type/_printers index 7229c1dc6..d736dd51d 100644 --- a/Completion/Unix/Type/_printers +++ b/Completion/Unix/Type/_printers @@ -1,4 +1,4 @@ -#compdef -T values PRINTER LPDEST +#compdef -value-,PRINTER,-default- -value-,LPDEST,-default- local expl ret=1 list disp sep diff --git a/Completion/Unix/Type/_terminals b/Completion/Unix/Type/_terminals index 039430ad5..59f8d4d87 100644 --- a/Completion/Unix/Type/_terminals +++ b/Completion/Unix/Type/_terminals @@ -1,4 +1,4 @@ -#compdef infocmp -T values TERM +#compdef infocmp -value-,TERM,-default- local desc expl diff --git a/Completion/Unix/Type/_time_zone b/Completion/Unix/Type/_time_zone index 215d8bd4a..5bad7329b 100644 --- a/Completion/Unix/Type/_time_zone +++ b/Completion/Unix/Type/_time_zone @@ -1,4 +1,4 @@ -#compdef -T values TZ +#compdef -value-,TZ,-default- local expl |