diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-07 12:58:02 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-07 12:58:02 +0000 |
commit | e9168152d71e29e93c9d11039eed6650b724501b (patch) | |
tree | ff41994c8ff67230802d4aa456bcc1cf9ecd13fc /Completion/User | |
parent | ac84e729a7e1ad518ad1b7c52d7def72025b69a1 (diff) | |
download | zsh-e9168152d71e29e93c9d11039eed6650b724501b.tar.gz zsh-e9168152d71e29e93c9d11039eed6650b724501b.tar.xz zsh-e9168152d71e29e93c9d11039eed6650b724501b.zip |
removed.
Diffstat (limited to 'Completion/User')
-rw-r--r-- | Completion/User/_exec_funcs | 49 | ||||
-rw-r--r-- | Completion/User/_gs_name | 31 |
2 files changed, 0 insertions, 80 deletions
diff --git a/Completion/User/_exec_funcs b/Completion/User/_exec_funcs deleted file mode 100644 index 2fd64b230..000000000 --- a/Completion/User/_exec_funcs +++ /dev/null @@ -1,49 +0,0 @@ -#autoload - -# This should be called from `_arguments' or otherwise the calling -# function has to set up an array named `line' that contains the -# name of the executable as its seconf element or it has to supply -# that name as an argument. -# One option is recognized: `-p' means that we are completing a pair -# of names separated by a slash. - -local cmd pair expl - -if [[ "$1" = -p ]]; then - pair=yes - shift -fi - -if (( $# )); then - cmd="$1" -elif [[ $#line -gt 1 ]]; then - cmd="$line[2]" -else - return 1 -fi - -if [[ -n "$cmd" ]]; then - if [[ "$cmd" = /* ]]; then - tmp="$cmd" - else - tmp="$PWD/$cmd" - fi - - if [[ "$tmp" != "$_es_command" ]]; then - _es_command="$tmp" - _es_funcs=( "${(@)${(@M)${(@f)$(nm $cmd)}:#[^ ]# [tT] ([^_]|_[^_])*}##* }" ) - fi - - if [[ -n "$pair" ]]; then - if compset -P '*/'; then - _description expl 'call arc to function' - else - _description expl 'call arc from function' - fi - else - _description expl function - fi - compadd -M 'r:|_=* r:|=*' - "$_es_funcs[@]" -else - return 1 -fi diff --git a/Completion/User/_gs_name b/Completion/User/_gs_name deleted file mode 100644 index 3aef646eb..000000000 --- a/Completion/User/_gs_name +++ /dev/null @@ -1,31 +0,0 @@ -#autoload - -local expl - -if [[ "$1" = -d ]]; then - if [[ "$PREFIX" = *\=* ]]; then - _message 'systemdict definition value' - else - _description expl 'systemdict definition name' - compadd "$expl[@]" -M 'm:{a-z}={A-Z}' - \ - DISKFONTS NOCACHE NOBIND NODISPLAY NOPAUSE PLATFONTS SAFER \ - WRITESYSTEMDICT - fi -elif compset -P '*\='; then - case "$IPREFIX" in - *DEVICE\=) - _description expl 'ghostscript device' - compadd "$expl[@]" - "${(@)${=${$(gs -h)##* devices:}%%Search path:*}:#}" - ;; - *OutputFile\=) - _description expl 'output file' - _files - ;; - *) - _message 'systemdict value' - return 1 - esac -else - _description expl 'systemdict name' - compadd "$expl[@]" -S\= -M 'm:{a-z}={A-Z}' - DEVICE OutputFile -fi |