about summary refs log tree commit diff
path: root/configs/shared/.zprofile
diff options
context:
space:
mode:
Diffstat (limited to 'configs/shared/.zprofile')
-rw-r--r--configs/shared/.zprofile12
1 files changed, 12 insertions, 0 deletions
diff --git a/configs/shared/.zprofile b/configs/shared/.zprofile
new file mode 100644
index 000000000000..ceccf996fc2e
--- /dev/null
+++ b/configs/shared/.zprofile
@@ -0,0 +1,12 @@
+# ZSH seems to avoid sourcing ~/.profile during SSH sessions.
+# X (or something else) seems to source ~/.profile with it initializes.
+# Putting this here allows my SSH sessions to have the expected configuration.
+#
+# Putting this here instead of in my .zshrc or .zshenv is advantageous since it
+# is only called once when a terminal is created; subshells and nested ZSH
+# sessions don't re-source this file.
+#
+# See this thread for more information: https://groups.google.com/a/google.com/forum/#!topic/zsh-users/VO2lEJRfFzk
+source ~/.profile
+
+export PATH="$HOME/.cargo/bin:$PATH"