add: zsh-autocomplete (#2565)

Closes #2533
This commit is contained in:
madomado
2024-12-05 08:55:40 +08:00
committed by GitHub
parent c68cebabb9
commit 571cffb18e
3 changed files with 37 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "zsh-autocomplete.spec"
}
}
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("marlonrichert/zsh-autocomplete"));
@@ -0,0 +1,31 @@
%define debug_package %nil
Name: zsh-autocomplete
Version: 24.09.04
Release: 1%?dist
Summary: Real-time type-ahead completion for Zsh
License: MIT
URL: https://github.com/marlonrichert/zsh-autocomplete
Source0: %url/archive/refs/tags/%version.tar.gz
Packager: madonuko <mado@fyralabs.com>
%description
This plugin for Zsh adds real-time type-ahead autocompletion to your command
line, similar to what you find desktop apps. While you type on the command
line, available completions are listed automatically; no need to press any
keyboard shortcuts. Press Tab to insert the top completion or to select a
different one.
%prep
%autosetup
%build
%install
install -Dpm644 zsh-autocomplete.plugin.zsh -t %buildroot%_datadir/zsh-autocomplete/
mv Completions Functions %buildroot%_datadir/zsh-autocomplete/
%files
%doc README.md
%license LICENSE
%_datadir/zsh-autocomplete/