1
0
Fork 0
dotfiles/common/.config/zsh/.zprofile

151 lines
5.0 KiB
Bash

export EDITOR="nvim"
export TERMINAL="st"
export TERMCMD="$TERMINAL"
export OPENER="opener"
export BROWSER="firefox"
export PAGER="less"
# NOTE: Locale
export LANGUAGE="en_US"
export LANG="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
export LC_NUMERIC="en_US.UTF-8"
export LC_TIME="de_DE.UTF-8"
export LC_COLLATE="en_US.UTF-8"
export LC_MONETARY="de_DE.UTF-8"
export LC_MESSAGES="en_US.UTF-8"
export LC_PAPER="en_US.UTF-8"
export LC_NAME="en_US.UTF-8"
export LC_ADDRESS="en_US.UTF-8"
export LC_TELEPHONE="en_US.UTF-8"
export LC_MEASUREMENT="de_DE.UTF-8"
export LC_IDENTIFICATION="en_US.UTF-8"
export LC_ALL=
# NOTE: Settings
export VIRTUAL_ENV_DISABLE_PROMPT=1
export FZF_DEFAULT_OPTS="\
--preview-window nowrap \
--layout=reverse --cycle \
--color=fg:#c0caf5,bg:,hl:#ff9e64 \
--color=fg+:#c0caf5,bg+:,hl+:#ff9e64 \
--color=info:#7aa2f7,prompt:#7dcfff,pointer:#7dcfff \
--color=marker:#9ece6a,spinner:#9ece6a,header:#9ece6a \
"
export AUTO_NOTIFY_THRESHOLD=15
export AUTO_NOTIFY_EXPIRE_TIME=5000
export AUTO_NOTIFY_TITLE="Command finished execution"
export AUTO_NOTIFY_BODY="%command\nDuration: %elapsed seconds\nExit code: %exit_code"
export ANSIBLE_NOCOWS="1" # Stop those fucking cows in Ansible
export LESS="-R"
export LESSOPEN="| /usr/bin/bat -f %s 2>/dev/null"
export LESS_TERMCAP_md=$(tput bold; tput setaf 4)
export LESS_TERMCAP_me=$(tput sgr0)
export LESS_TERMCAP_mb=$(tput blink)
export LESS_TERMCAP_us=$(tput setaf 2)
export LESS_TERMCAP_ue=$(tput sgr0)
export LESS_TERMCAP_so=$(tput smso)
export LESS_TERMCAP_se=$(tput rmso)
export NEWT_COLORS='
root=white,black
border=black,lightgray
window=lightgray,lightgray
shadow=black,gray
title=black,lightgray
button=black,blue
actbutton=white,blue
compactbutton=black,lightgray
checkbox=black,lightgray
actcheckbox=lightgray,blue
entry=black,lightgray
disentry=gray,lightgray
label=black,lightgray
listbox=black,lightgray
actlistbox=black,blue
sellistbox=lightgray,black
actsellistbox=lightgray,black
textbox=black,lightgray
acttextbox=black,blue
emptyscale=,gray
fullscale=,blue
helpline=white,black
roottext=lightgrey,black
'
# NOTE: dotfiles management
export STOW_DIR="$XDG_DATA_HOME/stow"
export STOW_REPO="git@git.snaile.de:luca/dotfiles"
export STOW_BRANCH="main"
# NOTE: Home Dir Cleanup
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_STATE_HOME="$HOME/.local/state"
set -a; source "$XDG_CONFIG_HOME/user-dirs.dirs"; set +a
export XINITRC="$XDG_CONFIG_HOME/X11/xinitrc"
export ANDROID_HOME="$XDG_DATA_HOME/android"
export ANSIBLE_GALAXY_CACHE_DIR="$XDG_CACHE_HOME/ansible/galaxy"
export ANSIBLE_GALAXY_TOKEN_PATH="$XDG_DATA_HOME/ansible/galaxy_token"
export ANSIBLE_HOME="$XDG_DATA_HOME/ansible"
export ANSIBLE_LOCAL_TMP="$XDG_CACHE_HOME/ansible/tmp"
export ANSIBLE_PERSISTENT_CONTROL_PATH_DIR="$XDG_RUNTIME_DIR/ansible_pc.sock"
export CARGO_HOME="$XDG_DATA_HOME/cargo"
export CUDA_CACHE_PATH="$XDG_CACHE_HOME/nv"
export DOCKER_CONFIG="$XDG_CONFIG_HOME/docker"
export GNUPGHOME="$XDG_CONFIG_HOME/gnupg"
export GOPATH="$XDG_DATA_HOME/go"
export GRADLE_USER_HOME="$XDG_DATA_HOME/gradle"
export PERL_CPANM_HOME="$XDG_CACHE_HOME/cpanm"
export PNPM_HOME="$XDG_DATA_HOME/pnpm"
export GTK2_RC_FILES="$XDG_CONFIG_HOME/.config}/gtk-2.0/gtkrc-2.0"
export HISTFILE="$XDG_DATA_HOME/history"
export INPUTRC="$XDG_CONFIG_HOME/shell/inputrc"
export LESSHISTFILE="-"
export MOZBUILD_STATE_PATH="$XDG_DATA_HOME/mozbuild"
export NODE_REPL_HISTORY="$XDG_DATA_HOME/node_repl_history"
export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch-config"
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
export PYTHONSTARTUP="/etc/python/pythonrc"
export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
export SVDIR="$HOME/.local/sv"
export TMUX_TMPDIR="$XDG_RUNTIME_DIR"
export UNISON="$XDG_DATA_HOME/unison"
export W3M_DIR="$XDG_DATA_HOME/w3m"
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
export WINEPREFIX="$XDG_DATA_HOME/wineprefixes/default"
export WORKON_HOME="$XDG_DATA_HOME/virtualenv"
export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
export XBPS_DISTDIR="$XDG_DOCUMENTS_DIR/dev/server/void-packages"
export ZK_NOTEBOOK_DIR="$XDG_DOCUMENTS_DIR/notes"
export ZSH_COMPDUMP="$XDG_CACHE_HOME/zcompdump"
export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=$XDG_CONFIG_HOME/java"
export GIT_SIGN_FALLBACK_KEY_IDS="config"
export REQUESTS_CA_BUNDLE="/etc/ssl/certs/ca-certificates.crt"
localpath=""
export PATH="$PATH:$localpath"
for NEW_PATH in \
"${PNPM_HOME}" \
"${XDG_DATA_HOME}/cargo/bin" \
"${XDG_CONFIG_HOME}/composer/vendor/bin" \
"$(gem environment gempath)/bin" \
"$(find -L ~/.local/bin -type d -printf %p: | sed 's/.$//')" \
"${GOPATH}/bin"
do
case ":${PATH}:" in
*":${NEW_PATH}:"*) ;;
*) export PATH="${NEW_PATH}:${PATH}" ;;
esac
done
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ]; then
exec startx $XINITRC
fi