From 773095812fa57d2f78bc7a2f491ef5dc9188b2bf Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 16 Jun 2020 21:16:25 +0200 Subject: fzfmenu: make default prompt configurable --- krebs/5pkgs/simple/fzfmenu/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'krebs') diff --git a/krebs/5pkgs/simple/fzfmenu/default.nix b/krebs/5pkgs/simple/fzfmenu/default.nix index 6d5e37988..446419a04 100644 --- a/krebs/5pkgs/simple/fzfmenu/default.nix +++ b/krebs/5pkgs/simple/fzfmenu/default.nix @@ -14,6 +14,10 @@ let _file = toString ./profile.nix; imports = singleton config; options = { + defaultPrompt = mkOption { + default = ">"; + type = types.str; + }; appName = mkOption { default = "fzfmenu"; type = types.label; @@ -45,7 +49,7 @@ pkgs.writeDashBin "fzfmenu" '' exec 1>&''${FZFMENU_OUTPUT_FD-1} fi - PROMPT=">" + PROMPT=${shell.escape cfg.defaultPrompt} for i in "$@"; do case $i in -p) -- cgit v1.2.3