diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:37:16 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:37:16 +0000 |
commit | 004a5b240dfce5fc907454d9f3ae18c430888dc6 (patch) | |
tree | b91a7c85e4a7b1f4504007499d0427e88e19160d /Completion/User | |
parent | d1c73a6604838c0709d3465a09230d9b17744a7c (diff) | |
download | zsh-004a5b240dfce5fc907454d9f3ae18c430888dc6.tar.gz zsh-004a5b240dfce5fc907454d9f3ae18c430888dc6.tar.xz zsh-004a5b240dfce5fc907454d9f3ae18c430888dc6.zip |
moved to Completion/Unix/Type/_domains
Diffstat (limited to 'Completion/User')
-rw-r--r-- | Completion/User/_domains | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Completion/User/_domains b/Completion/User/_domains deleted file mode 100644 index 42a0966dd..000000000 --- a/Completion/User/_domains +++ /dev/null @@ -1,20 +0,0 @@ -#autoload - -local expl domains tmp - -if ! zstyle -a ":completion:${curcontext}:domains" domains domains; then - if (( ! $+_cache_domains )); then - _cache_domains=() - if [[ -f /etc/resolv.conf ]]; then - while read tmp; do - [[ "$tmp" = (domain|search)* ]] && - _cache_domains=( "$_cache_domains[@]" "${=${tmp%%[ ]#}#*[ ]}" ) - done < /etc/resolv.conf - _cache_domains=( "${(@)_cache_domains:#[ ]#}" ) - fi - fi - domains=( "$_cache_domains[@]" ) -fi - -_wanted domains expl domain \ - compadd -M 'm:{a-zA-Z}={A-Za-z} r:|.=* r:|=*' "$@" -a domains |