Skip to content

Commit

Permalink
main/fzf: install fzf-tmux
Browse files Browse the repository at this point in the history
  • Loading branch information
ttyyls committed Oct 5, 2024
1 parent 9fff9f4 commit fa0febe
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion main/fzf/template.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pkgname = "fzf"
pkgver = "0.55.0"
pkgrel = 2
pkgrel = 3
build_style = "go"
hostmakedepends = ["go"]
makedepends = ["ncurses-devel"]
Expand All @@ -17,9 +17,20 @@ def post_install(self):
self.install_man("man/man1/fzf.1")
self.install_file("plugin/fzf.vim", "usr/share/vim/vimfiles/plugin")
self.install_file("plugin/fzf.vim", "usr/share/nvim/runtime/plugin")
self.install_bin("bin/fzf-tmux")

with self.pushd("shell"):
self.install_completion("completion.bash", "bash")
self.install_completion("completion.zsh", "zsh")

for ext in ["bash", "fish", "zsh"]:
self.install_file(f"key-bindings.{ext}", "usr/share/fzf")


@subpackage("fzf-tmux")
def _(self):
self.subdesc = "tmux plugin"
self.depends = ["bash", self.parent]
self.install_if = [self.parent]

return ["usr/bin/fzf-tmux"]

0 comments on commit fa0febe

Please sign in to comment.