diff options
author | June McEnroe <june@causal.agency> | 2020-12-22 20:28:24 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-12-23 16:12:01 -0500 |
commit | b171fe9c0398274b619f9b7a8ddc37daffeb419c (patch) | |
tree | 6816dfe03fb21ef194003b8491914255317a4b97 /bin/dash/src/var.h | |
parent | Cache the expanded prompt for editline (diff) | |
download | src-b171fe9c0398274b619f9b7a8ddc37daffeb419c.tar.gz src-b171fe9c0398274b619f9b7a8ddc37daffeb419c.zip |
Add RPS1 and RPS2 right prompt variables
Diffstat (limited to '')
-rw-r--r-- | bin/dash/src/var.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/dash/src/var.h b/bin/dash/src/var.h index aa7575a7..1d1d87a5 100644 --- a/bin/dash/src/var.h +++ b/bin/dash/src/var.h @@ -87,7 +87,9 @@ extern struct var varinit[]; #define vps1 (&vpath)[1] #define vps2 (&vps1)[1] #define vps4 (&vps2)[1] -#define voptind (&vps4)[1] +#define vrps1 (&vps4)[1] +#define vrps2 (&vrps1)[1] +#define voptind (&vrps2)[1] #ifdef WITH_LINENO #define vlineno (&voptind)[1] #endif @@ -122,6 +124,8 @@ extern char linenovar[]; #define ps1val() (vps1.text + 4) #define ps2val() (vps2.text + 4) #define ps4val() (vps4.text + 4) +#define rps1val() (vrps1.text + 5) +#define rps2val() (vrps2.text + 5) #define optindval() (voptind.text + 7) #define linenoval() (vlineno.text + 7) #ifndef SMALL |