Files
server/opt/plesk/phpenv/completions/phpenv.zsh
2026-01-07 20:52:11 +01:00

19 lines
305 B
Bash

if [[ ! -o interactive ]]; then
return
fi
compctl -K _phpenv phpenv
_phpenv() {
local words completions
read -cA words
if [ "${#words}" -eq 2 ]; then
completions="$(phpenv commands)"
else
completions="$(phpenv completions ${words[2,-1]})"
fi
reply=("${(ps:\n:)completions}")
}