dotfiles

:)
git clone https://git.sr.ht/~ashymad/dotfiles
Log | Files | Refs | Submodules | LICENSE

.zshenv (921B)


      1 skip_global_compinit=1
      2 
      3 SWAY_ENV_FILE=~/.config/sway/env
      4 SWAY_ENV_SHA="$(sha1sum "$SWAY_ENV_FILE" | cut -d' ' -f1)"
      5 if [[ $SWAY_ENV != $SWAY_ENV_SHA ]]; then
      6     source <(~/.local/bin/withenv -e -f "$SWAY_ENV_FILE")
      7 fi
      8 unset SWAY_ENV_FILE
      9 unset SWAY_ENV_SHA
     10 
     11 export MISE_Found="$(which mise &>/dev/null; echo $?)"
     12 tools=( 'nvim' )
     13 declare -A tool_paths
     14 
     15 for tool in "${tools[@]}"; do
     16     if [[ $MISE_Found == 0 ]] && tool_path="$(mise x -- which $tool)"; then
     17         tool_paths[$tool]="$tool_path"
     18     elif tool_path="$(which $tool)"; then
     19         tool_paths[$tool]="$tool_path"
     20     fi
     21 done
     22 
     23 [ -n "${tool_paths[nvim]}" ] && export EDITOR="${tool_paths[nvim]}" && export SUDO_EDITOR="$EDITOR"
     24 
     25 export VIVID_THEME=rose-pine-moon
     26 [ -f "$XDG_RUNTIME_DIR/arista-ssh/agent.sock" ] && export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/arista-ssh/agent.sock"
     27 export ZSH_EXEC=1
     28 export HOST
     29 [ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env"