Logo
Explore Help
Sign In
Mirrors/pyenv
1
0
Fork 0
You've already forked pyenv
mirror of https://github.com/pyenv/pyenv.git synced 2026-02-08 11:37:40 +09:00
Code Issues Packages Projects Releases Wiki Activity
pyenv/completions/rbenv.zsh

21 lines
318 B
Bash
Raw Normal View History

Re-add zsh completion script and remove fish completion script Looks like the zsh completion script was removed by mistake. Fixes: https://github.com/rbenv/rbenv/issues/1215 Refs: https://github.com/rbenv/rbenv/commit/569d464d361ba02ed77f20cff3399adf70953a58
2020-01-29 10:07:10 +00:00
if [[ ! -o interactive ]]; then
return
fi
compctl -K _rbenv rbenv
_rbenv() {
local words completions
read -cA words
Make zsh tab completion more resilient against user's shell configuration (#1422) Ensure a zsh user's prior shell options don't interfere with indexing into an array of arguments
2022-09-15 09:59:26 -07:00
emulate -L zsh
Re-add zsh completion script and remove fish completion script Looks like the zsh completion script was removed by mistake. Fixes: https://github.com/rbenv/rbenv/issues/1215 Refs: https://github.com/rbenv/rbenv/commit/569d464d361ba02ed77f20cff3399adf70953a58
2020-01-29 10:07:10 +00:00
if [ "${#words}" -eq 2 ]; then
completions="$(rbenv commands)"
else
completions="$(rbenv completions ${words[2,-2]})"
fi
reply=("${(ps:\n:)completions}")
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 35ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API