]> arthur.barton.de Git - OhMyZshExtensions.git/commitdiff
Add "z9_local_conf" plugin: read "/var/lib/$HOSTNAME/zshrc"
authorAlexander Barton <alex@barton.de>
Mon, 25 May 2015 00:05:24 +0000 (02:05 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 25 May 2015 00:05:24 +0000 (02:05 +0200)
This allows you to further adjust the ZSH configuration depending
on the hostname, which makes sense in environments with NFS mounted
home directories, for example.

plugins/z9_local_conf/z9_local_conf.plugin.zsh [new file with mode: 0644]

diff --git a/plugins/z9_local_conf/z9_local_conf.plugin.zsh b/plugins/z9_local_conf/z9_local_conf.plugin.zsh
new file mode 100644 (file)
index 0000000..036a42e
--- /dev/null
@@ -0,0 +1,6 @@
+# z9_local_conf.plugin.zsh
+# 2015-05-24, alex@barton.de
+
+zshrc_local="/var/lib/$HOSTNAME/zshrc"
+[ -r "$zshrc_local" ] && source "$zshrc_local"
+unset zshrc_local