summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2020-06-16 21:38:32 +0200
committertv <tv@krebsco.de>2020-06-16 21:40:24 +0200
commitf027eaacf27da0661cc9e0d062d64884b22ce290 (patch)
treedf2945123771f3dedc58d7906d630dbb9d615322 /krebs
parentaa019f372e603fa74469c9483481ea15623d7a7e (diff)
fzfmenu: make --reverse configurable
Diffstat (limited to 'krebs')
-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"}
''