fzfmenu: make default prompt configurable

This commit is contained in:
tv 2020-06-16 21:16:25 +02:00
parent 59aa9811f3
commit 773095812f

View File

@ -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)