Files
server/opt/plesk/phpenv/completions/phpenv.zsh
cutemeli 0bfc6c8425 Initial
2025-12-22 10:32:59 +00: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}")
}