dotfiles

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

.zshenv (779B)


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