add bash completions
https://docs.haskellstack.org/en/stable/shell_autocompletion/
This commit is contained in:
parent
42c56ec13f
commit
fc855f9862
@ -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 <petersen@redhat.com>
|
||||
- generate bash completions
|
||||
|
||||
* Sun Apr 12 2020 Jens Petersen <petersen@redhat.com> - 2020.1-2
|
||||
- stack requires ghc-zlib-devel for ghc
|
||||
- stack: silence warnings about ghc-8.8 and Cabal-3.0
|
||||
|
Loading…
Reference in New Issue
Block a user