Skip to content

Commit c72a0d3

Browse files
authored
awsume: install correct Zsh autocompletion (NixOS#373140)
2 parents 79ade21 + 795cbd1 commit c72a0d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkgs/tools/admin/awsume/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@ buildPythonApplication rec {
3939
postPatch = ''
4040
patchShebangs shell_scripts
4141
substituteInPlace shell_scripts/{awsume,awsume.fish} --replace-fail "awsumepy" "$out/bin/awsumepy"
42+
substituteInPlace awsume/configure/autocomplete.py --replace-fail "awsume-autocomplete" "$out/bin/awsume-autocomplete"
4243
'';
4344

4445
postInstall = ''
4546
installShellCompletion --cmd awsume \
4647
--bash <(PYTHONPATH=./awsume/configure ${python3}/bin/python3 -c"import autocomplete; print(autocomplete.SCRIPTS['bash'])") \
47-
--zsh <(PYTHONPATH=./awsume/configure ${python3}/bin/python3 -c"import autocomplete; print(autocomplete.SCRIPTS['zsh'])") \
48+
--zsh <(PYTHONPATH=./awsume/configure ${python3}/bin/python3 -c"import autocomplete; print(autocomplete.ZSH_AUTOCOMPLETE_FUNCTION)") \
4849
--fish <(PYTHONPATH=./awsume/configure ${python3}/bin/python3 -c"import autocomplete; print(autocomplete.SCRIPTS['fish'])") \
4950
5051
rm -f $out/bin/awsume.bat

0 commit comments

Comments
 (0)