diff options
author | tv <tv@krebsco.de> | 2020-06-16 21:38:32 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2020-06-16 21:40:24 +0200 |
commit | f027eaacf27da0661cc9e0d062d64884b22ce290 (patch) | |
tree | df2945123771f3dedc58d7906d630dbb9d615322 | |
parent | aa019f372e603fa74469c9483481ea15623d7a7e (diff) |
fzfmenu: make --reverse configurable
-rw-r--r-- | krebs/5pkgs/simple/fzfmenu/default.nix | 6 |
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"} '' |