Skip to content

Commit

Permalink
Add shell completion for xremap-gnome-bin (#39)
Browse files Browse the repository at this point in the history
Signed-off-by: szdytom <szdytom@qq.com>
  • Loading branch information
szdytom authored Dec 16, 2023
1 parent a41b601 commit 26d4944
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions assets/xremap-gnome-bin/PKGBUILD.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ sha256sums_aarch64=('{{.SHA256SumAarch64}}')

package() {
cd "$srcdir/"
./xremap --completions zsh > zsh_completions
./xremap --completions fish > fish_completions
./xremap --completions bash > bash_completions
install -Dm644 zsh_completions "${pkgdir}/usr/share/zsh/site-functions/_xremap"
install -Dm644 fish_completions "${pkgdir}/usr/share/fish/vendor_completions.d/xremap.fish"
install -Dm644 bash_completions "${pkgdir}/usr/share/bash-completion/completions/xremap"
install -Dm755 xremap "${pkgdir}/usr/bin/xremap"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/xremap-gnome-bin/LICENSE"
}

0 comments on commit 26d4944

Please sign in to comment.