fzfmenu: make default prompt configurable
This commit is contained in:
parent
59aa9811f3
commit
773095812f
@ -14,6 +14,10 @@ let
|
|||||||
_file = toString ./profile.nix;
|
_file = toString ./profile.nix;
|
||||||
imports = singleton config;
|
imports = singleton config;
|
||||||
options = {
|
options = {
|
||||||
|
defaultPrompt = mkOption {
|
||||||
|
default = ">";
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
appName = mkOption {
|
appName = mkOption {
|
||||||
default = "fzfmenu";
|
default = "fzfmenu";
|
||||||
type = types.label;
|
type = types.label;
|
||||||
@ -45,7 +49,7 @@ pkgs.writeDashBin "fzfmenu" ''
|
|||||||
exec 1>&''${FZFMENU_OUTPUT_FD-1}
|
exec 1>&''${FZFMENU_OUTPUT_FD-1}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PROMPT=">"
|
PROMPT=${shell.escape cfg.defaultPrompt}
|
||||||
for i in "$@"; do
|
for i in "$@"; do
|
||||||
case $i in
|
case $i in
|
||||||
-p)
|
-p)
|
||||||
|
Loading…
Reference in New Issue
Block a user