summary refs log tree commit diff
path: root/bin/cash/var.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-01-10 21:07:26 -0500
committerJune McEnroe <june@causal.agency>2019-01-10 21:10:33 -0500
commit279fdacbe25c28576f21984c560e912b7e338227 (patch)
tree59aec36a05b71867c7398ad045b7fb1cc19cb124 /bin/cash/var.c
parentFix unused copyright and rcsid in cash (diff)
downloadsrc-279fdacbe25c28576f21984c560e912b7e338227.tar.gz
src-279fdacbe25c28576f21984c560e912b7e338227.zip
Set RPROMPT from RPS1 and RPS2
Diffstat (limited to '')
-rw-r--r--bin/cash/var.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/cash/var.c b/bin/cash/var.c
index 9edad579..6797efdb 100644
--- a/bin/cash/var.c
+++ b/bin/cash/var.c
@@ -95,6 +95,8 @@ struct var vpath;
 struct var vps1;
 struct var vps2;
 struct var vps4;
+struct var vrps1;
+struct var vrps2;
 static struct var voptind;
 struct var vdisvfork;
 
@@ -121,6 +123,10 @@ static const struct varinit varinit[] = {
 	  NULL },
 	{ &vps4,	0,				"PS4=+ ",
 	  NULL },
+	{ &vrps1,	VUNSET,				"RPS1=",
+	  NULL },
+	{ &vrps2,	VUNSET,				"RPS2=",
+	  NULL },
 #ifndef NO_HISTORY
 	{ &vterm,	VUNSET,				"TERM=",
 	  setterm },