summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2020-06-16 21:16:25 +0200
committertv <tv@krebsco.de>2020-06-16 21:16:25 +0200
commit773095812fa57d2f78bc7a2f491ef5dc9188b2bf (patch)
tree4dac3e278fd82a6a0381fec83fa156800a6a18b0 /krebs/5pkgs
parent59aa9811f3d4b9e4762ec20c5424b42b170bd782 (diff)
fzfmenu: make default prompt configurable
Diffstat (limited to 'krebs/5pkgs')
-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 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)