From f027eaacf27da0661cc9e0d062d64884b22ce290 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 16 Jun 2020 21:38:32 +0200 Subject: fzfmenu: make --reverse configurable --- krebs/5pkgs/simple/fzfmenu/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'krebs/5pkgs/simple/fzfmenu') diff --git a/krebs/5pkgs/simple/fzfmenu/default.nix b/krebs/5pkgs/simple/fzfmenu/default.nix index 4c7784b4f..76235ddbd 100644 --- a/krebs/5pkgs/simple/fzfmenu/default.nix +++ b/krebs/5pkgs/simple/fzfmenu/default.nix @@ -26,6 +26,10 @@ let default = true; type = types.bool; }; + reverse = mkOption { + default = true; + type = types.bool; + }; windowTitle = mkOption { default = "fzfmenu"; type = types.str; @@ -87,7 +91,7 @@ pkgs.writeDashBin "fzfmenu" '' ${pkgs.fzf}/bin/fzf \ --history=/dev/null \ --prompt="$PROMPT" \ - --reverse \ + ${optionalString cfg.reverse "--reverse"} \ ${optionalString cfg.printQuery "--print-query"} \ ${optionalString cfg.printQuery "| ${pkgs.coreutils}/bin/tail -1"} '' -- cgit v1.2.3