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 authored and triallax committed Oct 28, 2024
1 parent f89b47d commit f5fac1c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions main/fzf-tmux
14 changes: 13 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.56.0"
pkgrel = 0
pkgrel = 1
build_style = "go"
hostmakedepends = ["go"]
makedepends = ["ncurses-devel"]
Expand All @@ -17,9 +17,21 @@ 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")
self.install_man("man/man1/fzf-tmux.1")

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 integration script"
self.depends = [self.parent, "bash", "tmux"]
self.install_if = [self.parent, "bash", "tmux"]

return ["cmd:fzf-tmux"]

0 comments on commit f5fac1c

Please sign in to comment.