summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple
diff options
context:
space:
mode:
Diffstat (limited to 'krebs/5pkgs/simple')
-rw-r--r--krebs/5pkgs/simple/fzfmenu/default.nix6
1 files changed, 5 insertions, 1 deletions
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"}
''