X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;ds=inline;f=zsh%2Frc;h=5d20a458d5855f1cb2ade92d5d94c16358444a04;hb=2f24b0aebdd38599256c21b82ee7b39fe5ad0963;hp=18ffa0ca062159a0a1235706df889816ecb53d46;hpb=761e5e8b7a2b297622b17bec7c9a72caed2b44f3;p=config%2Fdotfiles.git diff --git a/zsh/rc b/zsh/rc index 18ffa0c..5d20a45 100644 --- a/zsh/rc +++ b/zsh/rc @@ -95,11 +95,11 @@ function ll() { } -# 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. +# If a rc file for the current hostname (first part before a dot) exists load +# it, otherwise load rc.local if available. host=${$(hostname)//.*/} -if [[ -f ~/.zsh/rc.local ]]; then; - source ~/.zsh/rc.local -elif [[ -f ~/.zsh/rc.$host ]]; then; +if [[ -f ~/.zsh/rc.$host ]]; then; source ~/.zsh/rc.$host +elif [[ -f ~/.zsh/rc.local ]]; then; + source ~/.zsh/rc.local fi