From fc855f9862d2eea3f9fc629880eeacd9741a59f8 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 2 May 2020 13:13:28 +0800 Subject: [PATCH] add bash completions https://docs.haskellstack.org/en/stable/shell_autocompletion/ --- haskell-platform.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/haskell-platform.spec b/haskell-platform.spec index b7085ea..5753ffd 100644 --- a/haskell-platform.spec +++ b/haskell-platform.spec @@ -260,6 +260,9 @@ rm %{buildroot}%{_bindir}/example echo %{_bindir}/hpack >> %{hpack}/ghc-hpack.files echo %{_bindir}/haskell-mustache >> %{mustache}/ghc-mustache.files +mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/ +%{buildroot}%{_bindir}/stack --bash-completion-script stack > %{buildroot}%{_datadir}/bash-completion/completions/stack + %files @@ -270,9 +273,13 @@ echo %{_bindir}/haskell-mustache >> %{mustache}/ghc-mustache.files %doc %{stack}/CONTRIBUTING.md %{stack}/ChangeLog.md %{stack}/README.md %{_bindir}/stack # End cabal-rpm files +%{_datadir}/bash-completion/completions/stack %changelog +* Sat May 2 2020 Jens Petersen +- generate bash completions + * Sun Apr 12 2020 Jens Petersen - 2020.1-2 - stack requires ghc-zlib-devel for ghc - stack: silence warnings about ghc-8.8 and Cabal-3.0