summary refs log tree commit diff
path: root/src/histedit.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/histedit.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/histedit.c')
-rw-r--r--src/histedit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/histedit.c b/src/histedit.c
index 3525e02..5816331 100644
--- a/src/histedit.c
+++ b/src/histedit.c
@@ -116,6 +116,7 @@ histedit(void)
 				if (hist)
 					el_set(el, EL_HIST, history, hist);
 				el_set(el, EL_PROMPT, getprompt);
+				el_set(el, EL_RPROMPT, getrprompt);
 #ifdef HAVE__EL_FN_SH_COMPLETE
 				el_set(el, EL_ADDFN, "sh-complete", "Filename completion",
 					_el_fn_sh_complete);