diff options
author | June McEnroe <june@causal.agency> | 2019-01-15 23:37:38 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-01-15 23:37:38 -0500 |
commit | a325dd6b1d711cdfa97279ba485ca05c769c9b5a (patch) | |
tree | da1bfc53930a10cfac8cfbead515252a1e64a10d /bin/cash/var.c | |
parent | Add !! alias in cash (diff) | |
download | src-a325dd6b1d711cdfa97279ba485ca05c769c9b5a.tar.gz src-a325dd6b1d711cdfa97279ba485ca05c769c9b5a.zip |
Add basic HISTFILE load and save
Diffstat (limited to 'bin/cash/var.c')
-rw-r--r-- | bin/cash/var.c | 3 |
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 |