X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=b7c4f00522feccb372d78ecd884d2c95d1f1cc38;hb=f47a7d740293e664da19bb4ccc088e0ec9a13e8a;hp=298cab3b8e4c44772e343666affa9f22b51cb285;hpb=c338b6a9afe0068aedb3d70b479cbcb7cbc31552;p=config%2Fdotfiles.git diff --git a/zsh/rc b/zsh/rc index 298cab3..b7c4f00 100644 --- a/zsh/rc +++ b/zsh/rc @@ -53,3 +53,13 @@ zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' # Enable zsh's extended glob abilities. setopt extendedglob + + +# If a rc.local file exists load it, otherwise load a rc file for the current +# hostname (first part before a dot) if it exists. +host=${$(hostname)//.*/} +if [[ -f ~/.zsh/rc.local ]]; then; + source ~/.zsh/rc.local +elif [[ -f ~/.zsh/rc.$host ]]; then; + source ~/.zsh/rc.$host +fi