From: Mark Wooding Date: Wed, 9 Aug 2017 19:47:16 +0000 (+0100) Subject: dot/zshenv, setup: Arrange to run the profile code after SSH. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/ecde2a36fd2952a2c7943b784f09ed339b4e6ff4 dot/zshenv, setup: Arrange to run the profile code after SSH. This way, incoming SSH connections get the benefit of the proper `$PATH' and so on. --- diff --git a/dot/zshenv b/dot/zshenv new file mode 100644 index 0000000..ec36838 --- /dev/null +++ b/dot/zshenv @@ -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 42a3bc1..f7a0d9e 100755 --- 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