pipenv: add pipenv shell completions
This commit is contained in:
parent
666c2fa526
commit
d32d994cc1
|
@ -38,6 +38,17 @@ in buildPythonApplication rec {
|
|||
|
||||
propagatedBuildInputs = runtimeDeps python3.pkgs;
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p "$out/share/bash-completion/completions"
|
||||
_PIPENV_COMPLETE=bash_source "$out/bin/pipenv" > "$out/share/bash-completion/completions/pipenv"
|
||||
|
||||
mkdir -p "$out/share/zsh/vendor-completions"
|
||||
_PIPENV_COMPLETE=zsh_source "$out/bin/pipenv" > "$out/share/zsh/vendor-completions/_pipenv"
|
||||
|
||||
mkdir -p "$out/share/fish/vendor_completions.d"
|
||||
_PIPENV_COMPLETE=fish_source "$out/bin/pipenv" > "$out/share/fish/vendor_completions.d/pipenv.fish"
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
checkPhase = ''
|
||||
export HOME=$(mktemp -d)
|
||||
|
|
Loading…
Reference in a new issue