CHips L MINI SHELL

CHips L pro

Current Path : /usr/share/zsh/4.3.11/functions/
Upload File :
Current File : //usr/share/zsh/4.3.11/functions/_domains

#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

Copyright 2K16 - 2K18 Indonesian Hacker Rulez