Revert "fzf: remove fzf-share helper"

This reverts commit 1035a9efdf.
This commit is contained in:
Sandro Jäckel 2024-04-11 13:52:44 +02:00
parent 104f24e0b9
commit 15ed0d2125
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 9 additions and 0 deletions

View File

@ -1,6 +1,7 @@
{ lib
, buildGoModule
, fetchFromGitHub
, runtimeShell
, installShellFiles
, bc
, ncurses
@ -64,6 +65,14 @@ buildGoModule rec {
status is-interactive; or exit 0
fzf_key_bindings
EOF
cat <<SCRIPT > $out/bin/fzf-share
#!${runtimeShell}
# Run this script to find the fzf shared folder where all the shell
# integration scripts are living.
echo $out/share/fzf
SCRIPT
chmod +x $out/bin/fzf-share
'';
passthru.tests.version = testers.testVersion {