about summary refs log tree commit diff stats
path: root/bin/shenv
diff options
context:
space:
mode:
authorEnsa <psychoticfervor@tuta.io>2019-12-20 00:14:09 -0800
committerEnsa <psychoticfervor@tuta.io>2019-12-20 00:14:09 -0800
commit4684d80b6271dd775cd23dabf2b91d6ce56fa33a (patch)
treeddb6c6219e213132b8500e016b1ce238aa71029d /bin/shenv
parentf733ca7c8041866df27752c8e0c2610e0ecef6a7 (diff)
downloadcfg-4684d80b6271dd775cd23dabf2b91d6ce56fa33a.tar.gz
first significant commit
see README.md for information
Diffstat (limited to 'bin/shenv')
-rwxr-xr-xbin/shenv6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/shenv b/bin/shenv
new file mode 100755
index 0000000..b9428b8
--- /dev/null
+++ b/bin/shenv
@@ -0,0 +1,6 @@
+#!/bin/sh
+# simply sources the shrc and runs a shell with that as its environment.
+# passes through all arguments that sh takes. to be used instead of sh.
+XDG_CONFIG_DIR=${XDG_CONFIG_DIR:="$HOME/.config"}
+. $XDG_CONFIG_DIR/shrc
+exec sh "$@"