diff options
Diffstat (limited to 'source/app.d')
-rw-r--r-- | source/app.d | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/app.d b/source/app.d index 68bf114..4669b5d 100644 --- a/source/app.d +++ b/source/app.d @@ -14,6 +14,7 @@ Opts defaultOpts() { Opts opts; opts.pathlen = 3; + opts.pchar = "|>"; return opts; } @@ -38,10 +39,13 @@ void main(string[] argv) { "status", "previous command exit code", &opts.status, "pathlen", "set length of displayed path", &opts.pathlen, + "pchar", "override default prompt character", &opts.pchar, ); if (args.helpWanted) { - defaultGetoptPrinter("prim", args.options); + defaultGetoptPrinter("prim prompt:\n", args.options); + writeln("\nEnvironment:\n", + "\tNO_COLOR\tsee https://no-color.org"); } dorun(opts); @@ -53,7 +57,7 @@ void dorun(Opts opts) { } if (opts.preexec) { - // preexec(opts).write(); + preexec(opts).write(); } if (opts.rps1) { |