Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
00c37b69
Unverified
Commit
00c37b69
authored
Jan 03, 2023
by
Alastair Rankine
Committed by
GitHub
Jan 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(pipenv): standarize completion generation (#11424)
Co-authored-by:
Carlo Sala
<
carlosalag@protonmail.com
>
Closes #11423
parent
36f1055e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
pipenv.plugin.zsh
plugins/pipenv/pipenv.plugin.zsh
+13
-5
No files found.
plugins/pipenv/pipenv.plugin.zsh
View file @
00c37b69
# 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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment