summary refs log tree commit diff
path: root/bin/cash/var.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-01-15 23:37:38 -0500
committerJune McEnroe <june@causal.agency>2019-01-15 23:37:38 -0500
commite9f521762addffe2532868082bc165ca53adb167 (patch)
treec0f54610fca1048a989a523cafb0965c1c2292c9 /bin/cash/var.c
parentAdd !! alias in cash (diff)
downloadsrc-e9f521762addffe2532868082bc165ca53adb167.tar.gz
src-e9f521762addffe2532868082bc165ca53adb167.zip
Add basic HISTFILE load and save
Diffstat (limited to '')
-rw-r--r--bin/cash/var.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/cash/var.c b/bin/cash/var.c
index d0c01bb7..26c39eb4 100644
--- a/bin/cash/var.c
+++ b/bin/cash/var.c
@@ -85,6 +85,7 @@ struct varinit {
 
 
 #ifndef NO_HISTORY
+struct var vhistfile;
 struct var vhistsize;
 struct var vpslit;
 struct var vterm;
@@ -109,6 +110,8 @@ int forcelocal;
 static const struct varinit varinit[] = {
 	{ &venv, 0, "ENV=${XDG_CONFIG_HOME:-${HOME}/.config}/cash/env.sh", NULL },
 #ifndef NO_HISTORY
+	{ &vhistfile,	VUNSET,				"HISTFILE=",
+	  sethistfile },
 	{ &vhistsize,	VUNSET,				"HISTSIZE=",
 	  sethistsize },
 #endif