summary refs log tree commit diff
path: root/src/var.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-12-22 20:28:24 -0500
committerJune McEnroe <june@causal.agency>2022-01-21 22:03:09 -0500
commit5132ea0e048ccf7a1d8a66ca16cd45413cfeb57b (patch)
tree76cbcb46557de830becbb047b7368a88dd37c83b /src/var.c
parentdash: Cache the expanded prompt for editline (diff)
downloaddash-5132ea0e048ccf7a1d8a66ca16cd45413cfeb57b.tar.gz
dash-5132ea0e048ccf7a1d8a66ca16cd45413cfeb57b.zip
dash: Add RPS1 and RPS2 right prompt variables
Diffstat (limited to 'src/var.c')
-rw-r--r--src/var.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/var.c b/src/var.c
index ef9c2bd..ca9504e 100644
--- a/src/var.c
+++ b/src/var.c
@@ -93,6 +93,8 @@ struct var varinit[] = {
 	{ 0,	VSTRFIXED|VTEXTFIXED,		"PS1=$ ",	0 },
 	{ 0,	VSTRFIXED|VTEXTFIXED,		"PS2=> ",	0 },
 	{ 0,	VSTRFIXED|VTEXTFIXED,		"PS4=+ ",	0 },
+	{ 0,	VSTRFIXED|VTEXTFIXED|VUNSET,	"RPS1\0",	0 },
+	{ 0,	VSTRFIXED|VTEXTFIXED|VUNSET,	"RPS2\0",	0 },
 	{ 0,	VSTRFIXED|VTEXTFIXED,		defoptindvar,	getoptsreset },
 #ifdef WITH_LINENO
 	{ 0,	VSTRFIXED|VTEXTFIXED,		linenovar,	0 },