diff options
author | June McEnroe <june@causal.agency> | 2020-12-22 20:28:24 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2022-01-21 22:03:09 -0500 |
commit | 5132ea0e048ccf7a1d8a66ca16cd45413cfeb57b (patch) | |
tree | 76cbcb46557de830becbb047b7368a88dd37c83b /src/var.h | |
parent | dash: Cache the expanded prompt for editline (diff) | |
download | dash-5132ea0e048ccf7a1d8a66ca16cd45413cfeb57b.tar.gz dash-5132ea0e048ccf7a1d8a66ca16cd45413cfeb57b.zip |
dash: Add RPS1 and RPS2 right prompt variables
Diffstat (limited to 'src/var.h')
-rw-r--r-- | src/var.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/var.h b/src/var.h index aa7575a..1d1d87a 100644 --- a/src/var.h +++ b/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 |