aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-08-09 19:17:35 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-08-09 19:17:35 +0200
commit431a2912b7fbb61309357ff883894d7d2724fc30 (patch)
tree11476140d45b46a96c61598f2dca180939ae4a1e
parent0422b01ef04b13f38701040b7845cfefe5e0fae4 (diff)
downloaddotfiles-431a2912b7fbb61309357ff883894d7d2724fc30.tar.xz
zshrc: Source $ZDOTDIR/environ-$(hostname -s) if exists
-rw-r--r--zsh/.zshrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index b26b27a..1f1c62e 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -82,6 +82,9 @@ source "$ZDOTDIR"/keybindings.zsh
zle -N edit-command-line
+[[ -f "$ZDOTDIR"/environ-"$(hostname -s)" ]] && \
+ source "$ZDOTDIR"/environ-"$(hostname -s)"
+
if [[ -n "$VTE_VERSION" ]]; then
source /etc/profile.d/vte.sh
__vte_prompt_command