typeset -U path path=(~/.local/bin ~/.cargo/bin $path[@]) if [[ $XDG_SESSION_TYPE == "wayland" ]]; then export QT_QPA_PLATFORM=wayland-egl export MOZ_ENABLE_WAYLAND=1 fi # make less more friendly for non-text input files, see lesspipe(1) if [ -x /usr/bin/lesspipe ]; then export LESSOPEN="|lesspipe %s" elif [ -x /usr/bin/lesspipe.sh ]; then export LESSOPEN="|lesspipe.sh %s" fi # colored GCC warnings and errors export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' export EDITOR="nvim" export TMPDIR="/tmp/${USER}" eval $(dircolors ~/.dir_colors) export GPG_TTY=$(tty) export _JAVA_AWT_WM_NONREPARENTING=1 export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent.socket export LESS='--chop-long-lines --HILITE-UNREAD --ignore-case --incsearch --jump-target=4 --LONG-PROMPT --no-init --quit-if-one-screen --RAW-CONTROL-CHARS --use-color --window=-4'