X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=b7c4f00522feccb372d78ecd884d2c95d1f1cc38;hb=486bbbcbb78ff022420640be59ebe72a24cb0882;hp=298cab3b8e4c44772e343666affa9f22b51cb285;hpb=932f6438bf1c0f658550841e04ab9a22f2590773;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