chiark / gitweb /
dot/zshenv, setup: Arrange to run the profile code after SSH.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 9 Aug 2017 19:47:16 +0000 (20:47 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 9 Aug 2017 19:47:16 +0000 (20:47 +0100)
This way, incoming SSH connections get the benefit of the proper `$PATH'
and so on.

dot/zshenv [new file with mode: 0644]
setup

diff --git a/dot/zshenv b/dot/zshenv
new file mode 100644 (file)
index 0000000..ec36838
--- /dev/null
@@ -0,0 +1,7 @@
+### -*-sh-*-
+###
+### Last ditch sanity for Zsh invocations.
+
+case ${SSH_CONNECTION+t},${__mdw_profile+t} in
+  t,) . "$HOME/.zprofile" ;;
+esac
diff --git a/setup b/setup
index 42a3bc18dbcbbfb5dcc14008ad284c941f10e039..f7a0d9e5f04f30e1910cdde25f919eda8b9ba65f 100755 (executable)
--- a/setup
+++ b/setup
@@ -135,7 +135,7 @@ dotfiles="
   bash-profile:.bash_profile
   bash-completion:.bash_completion bashrc inputrc
   shrc
-  zprofile zshrc
+  zprofile zshrc zshenv
   emacs emacs-calc vm gnus.el ercrc.el
   vimrc mg zile lesskey infokey sqliterc
   parallel-config:.parallel/config