aboutsummaryrefslogtreecommitdiff
path: root/yash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-31 17:49:42 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-31 17:49:42 +1200
commitcbad3d16fb358fb6042a0e91a21b15eeb90bb95c (patch)
tree3db6887e21a9dba69776d9e6b483fc57cd07e9d9 /yash
parentMerge branch 'openbsd' (diff)
downloaddotfiles-cbad3d16fb358fb6042a0e91a21b15eeb90bb95c.tar.gz
dotfiles-cbad3d16fb358fb6042a0e91a21b15eeb90bb95c.zip
Add very basic Yash support
I know almost nothing about Yash yet, but reading the manual page on its startup behaviour implies a little coaxing is necessary to make it play nicely with my file layout.
Diffstat (limited to 'yash')
-rw-r--r--yash/yash_profile2
-rw-r--r--yash/yashrc3
2 files changed, 5 insertions, 0 deletions
diff --git a/yash/yash_profile b/yash/yash_profile
new file mode 100644
index 00000000..d37f35a1
--- /dev/null
+++ b/yash/yash_profile
@@ -0,0 +1,2 @@
+# Load ~/.profile, because Yash won't by itself, no matter how you invoke it
+[ -e "$HOME"/.profile ] && . "$HOME"/.profile
diff --git a/yash/yashrc b/yash/yashrc
new file mode 100644
index 00000000..eef82e54
--- /dev/null
+++ b/yash/yashrc
@@ -0,0 +1,3 @@
+# Load POSIX interactive shell startup files, because Yash won't do it if not
+# invoked as sh(1)
+[ -e "$ENV" ] && . "$ENV"