Skip to content

Commit

Permalink
Revert "fzf: remove fzf-share helper"
Browse files Browse the repository at this point in the history
This reverts commit 1035a9e.
  • Loading branch information
SuperSandro2000 committed Apr 11, 2024
1 parent 104f24e commit 15ed0d2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/tools/misc/fzf/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, buildGoModule
, fetchFromGitHub
, runtimeShell
, installShellFiles
, bc
, ncurses
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 15ed0d2

Please sign in to comment.