summary refs log tree commit diff
path: root/bin/cash/var.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-01-11 00:13:22 -0500
committerJune McEnroe <june@causal.agency>2019-01-11 00:13:22 -0500
commit2d722bdd93ba2ddd9d7e4394a845eeea9951ab5f (patch)
tree106206d9ea36a60f411190350a9b9f1ced429d8e /bin/cash/var.c
parentAdd "blank" lines to cash.1 (diff)
downloadsrc-2d722bdd93ba2ddd9d7e4394a845eeea9951ab5f.tar.gz
src-2d722bdd93ba2ddd9d7e4394a845eeea9951ab5f.zip
Set default ENV to ~/.config/cash/cashrc
Diffstat (limited to '')
-rw-r--r--bin/cash/var.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/cash/var.c b/bin/cash/var.c
index 6797efdb..54663914 100644
--- a/bin/cash/var.c
+++ b/bin/cash/var.c
@@ -88,6 +88,7 @@ struct varinit {
 struct var vhistsize;
 struct var vterm;
 #endif
+struct var venv;
 struct var vifs;
 struct var vmail;
 struct var vmpath;
@@ -104,6 +105,7 @@ struct localvar *localvars;
 int forcelocal;
 
 static const struct varinit varinit[] = {
+	{ &venv, 0, "ENV=${XDG_CONFIG_HOME:-${HOME}/.config}/cash/cashrc", NULL },
 #ifndef NO_HISTORY
 	{ &vhistsize,	VUNSET,				"HISTSIZE=",
 	  sethistsize },