Unverified Commit 00c37b69 authored by Alastair Rankine's avatar Alastair Rankine Committed by GitHub

feat(pipenv): standarize completion generation (#11424)

Co-authored-by: 's avatarCarlo Sala <carlosalag@protonmail.com> Closes #11423
parent 36f1055e
# Pipenv completion if (( ! $+commands[pipenv] )); then
_pipenv() { return
eval $(env COMMANDLINE="${words[1,$CURRENT]}" _PIPENV_COMPLETE=complete-zsh pipenv) fi
}
compdef _pipenv pipenv # If the completion file doesn't exist yet, we need to autoload it and
# bind it to `pipenv`. Otherwise, compinit will have already done that.
if [[ ! -f "$ZSH_CACHE_DIR/completions/_pipenv" ]]; then
typeset -g -A _comps
autoload -Uz _pipenv
_comps[pipenv]=_pipenv
fi
_PIPENV_COMPLETE=zsh_source pipenv >| "$ZSH_CACHE_DIR/completions/_pipenv" &|
# Automatic pipenv shell activation/deactivation # Automatic pipenv shell activation/deactivation
_togglePipenvShell() { _togglePipenvShell() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment