summaryrefslogtreecommitdiffstats
path: root/util/bin/with
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2013-01-30 14:56:37 +0100
committertv <tv@nomic.retiolum>2013-01-30 14:56:37 +0100
commit1aef05b59c51c2e515b0cee03e8b8c45a9108def (patch)
treed84da58f48edfbd275ae0ccd2526b2fb09abb784 /util/bin/with
parent609dd2e9e89c047399ab2e554e3411df7e6e2676 (diff)
//util with: initial commit
Diffstat (limited to 'util/bin/with')
-rwxr-xr-xutil/bin/with6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/bin/with b/util/bin/with
new file mode 100755
index 00000000..97893faf
--- /dev/null
+++ b/util/bin/with
@@ -0,0 +1,6 @@
+#! /bin/sh
+set -euf
+ENV="${env_dir-$HOME/.env.d}/$1"
+shift
+. "$ENV"
+exec "$@"