You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fx/internal/complete/zsh.go

19 lines
319 B
Go

package complete
func Zsh() string {
return `_fx_complete() {
if [[ $CURRENT -eq 2 ]]; then
_files
else
reply="$(COMP_ZSH="${LBUFFER}" fx)"
if [[ -n "$reply" ]]; then
_values=("${(@f)reply}")
compadd -a _values
fi
fi
}
compdef _fx_complete fx
`
}