all repos — archive/dotfiles @ 614ecb408d28794985bd96459689be97ecdf87aa

Superseded by nixfiles

tag-zsh/config/zsh/zshenv (view raw)

if [[ $SHLVL -eq 1 || -n $DISPLAY ]]
then
  if [[ -f $ZDOTDIR/zshenv.local ]]
  then
    . $ZDOTDIR/zshenv.local
  fi

  if [[ -f $ZDOTDIR/zshenv.private ]]
  then
    . $ZDOTDIR/zshenv.private
  fi

  ZPLUG_HOME=${ZPLUG_HOME:-~/projects/zplug}

  if [[ -z $SSH_AUTH_SOCK ]]
  then
    export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent.socket
  fi

  case $OSTYPE in
    darwin*)
      os=darwin
      ;;
    linux-gnu)
      os=linux
      ;;
    freebsd*)
      os=freebsd
      ;;
    *)
      os=unknown
      ;;
  esac

  case $MACHTYPE in
    *64)
      arch=amd64
      ;;
    *)
      arch=386
      ;;
  esac
fi