about summary refs log tree commit diff stats
path: root/bin/shenv
diff options
context:
space:
mode:
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 "$@"