From: Alexander Barton Date: Mon, 25 May 2015 00:05:24 +0000 (+0200) Subject: Add "z9_local_conf" plugin: read "/var/lib/$HOSTNAME/zshrc" X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=OhMyZshExtensions.git;a=commitdiff_plain;h=e86567bf4b455e212a0e54ddd99651724198c904 Add "z9_local_conf" plugin: read "/var/lib/$HOSTNAME/zshrc" 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. --- 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 index 0000000..036a42e --- /dev/null +++ b/plugins/z9_local_conf/z9_local_conf.plugin.zsh @@ -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