kitty: use installShellCompletion to install the shell completions
This commit is contained in:
parent
04f0884fa5
commit
09eabf6afd
@ -53,10 +53,10 @@ buildPythonApplication rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkgconfig sphinx ncurses
|
pkgconfig sphinx ncurses
|
||||||
|
installShellFiles
|
||||||
] ++ stdenv.lib.optionals stdenv.isDarwin [
|
] ++ stdenv.lib.optionals stdenv.isDarwin [
|
||||||
imagemagick
|
imagemagick
|
||||||
libicns # For the png2icns tool.
|
libicns # For the png2icns tool.
|
||||||
installShellFiles
|
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = stdenv.lib.optional stdenv.isLinux libGL;
|
propagatedBuildInputs = stdenv.lib.optional stdenv.isLinux libGL;
|
||||||
@ -113,10 +113,10 @@ buildPythonApplication rec {
|
|||||||
wrapProgram "$out/bin/kitty" --prefix PATH : "$out/bin:${stdenv.lib.makeBinPath [ imagemagick xsel ncurses.dev ]}"
|
wrapProgram "$out/bin/kitty" --prefix PATH : "$out/bin:${stdenv.lib.makeBinPath [ imagemagick xsel ncurses.dev ]}"
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
|
|
||||||
mkdir -p "$out/share/"{bash-completion/completions,fish/vendor_completions.d,zsh/site-functions}
|
installShellCompletion --cmd kitty \
|
||||||
"$out/bin/kitty" + complete setup fish > "$out/share/fish/vendor_completions.d/kitty.fish"
|
--bash <("$out/bin/kitty" + complete setup bash) \
|
||||||
"$out/bin/kitty" + complete setup bash > "$out/share/bash-completion/completions/kitty.bash"
|
--fish <("$out/bin/kitty" + complete setup fish) \
|
||||||
"$out/bin/kitty" + complete setup zsh > "$out/share/zsh/site-functions/_kitty"
|
--zsh <("$out/bin/kitty" + complete setup zsh)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user