2023-04-04 17:44:51 +02:00
|
|
|
|
#!/bin/zsh
|
2023-03-29 16:15:06 +02:00
|
|
|
|
# profile file. Runs on login. Environmental variables are set here.
|
|
|
|
|
|
2023-06-04 11:31:11 +02:00
|
|
|
|
# If you don't want this in your home directory, execute this command and move this file
|
|
|
|
|
# echo 'export ZDOTDIR="$HOME/.config/zsh"' | sudo tee -a /etc/zsh/zshenv
|
|
|
|
|
|
2023-03-29 16:15:06 +02:00
|
|
|
|
export EDITOR="nvim"
|
2023-06-14 18:12:13 +02:00
|
|
|
|
export TERMINAL="st"
|
2023-04-24 17:21:53 +02:00
|
|
|
|
export BROWSER="firefox"
|
2023-03-29 16:15:06 +02:00
|
|
|
|
|
2023-04-11 10:30:27 +02:00
|
|
|
|
# Settings
|
|
|
|
|
export VIRTUAL_ENV_DISABLE_PROMPT=1
|
2023-05-29 21:49:55 +02:00
|
|
|
|
export FZF_DEFAULT_OPTS="--layout=reverse --height 40%"
|
|
|
|
|
export LESS=-R
|
|
|
|
|
export LESS_TERMCAP_mb="$(printf '%b' '[1;31m')"
|
|
|
|
|
export LESS_TERMCAP_md="$(printf '%b' '[1;36m')"
|
|
|
|
|
export LESS_TERMCAP_me="$(printf '%b' '[0m')"
|
|
|
|
|
export LESS_TERMCAP_so="$(printf '%b' '[01;44;33m')"
|
|
|
|
|
export LESS_TERMCAP_se="$(printf '%b' '[0m')"
|
|
|
|
|
export LESS_TERMCAP_us="$(printf '%b' '[1;32m')"
|
|
|
|
|
export LESS_TERMCAP_ue="$(printf '%b' '[0m')"
|
|
|
|
|
export LESSOPEN="| /usr/bin/highlight -O ansi %s 2>/dev/null"
|
|
|
|
|
export ANSIBLE_NOCOWS=1 # Stop those fucking cows in Ansible
|
|
|
|
|
|
|
|
|
|
# Color palette for console dialogs in tools such as nmtui and whiptail
|
2023-05-29 22:20:46 +02:00
|
|
|
|
export NEWT_COLORS='
|
2023-05-29 21:49:55 +02:00
|
|
|
|
root=white,black
|
|
|
|
|
border=black,lightgray
|
|
|
|
|
window=lightgray,lightgray
|
|
|
|
|
shadow=black,gray
|
|
|
|
|
title=black,lightgray
|
2023-05-29 22:20:46 +02:00
|
|
|
|
button=black,blue
|
|
|
|
|
actbutton=white,blue
|
2023-05-29 21:49:55 +02:00
|
|
|
|
compactbutton=black,lightgray
|
|
|
|
|
checkbox=black,lightgray
|
2023-05-29 22:20:46 +02:00
|
|
|
|
actcheckbox=lightgray,blue
|
2023-05-29 21:49:55 +02:00
|
|
|
|
entry=black,lightgray
|
|
|
|
|
disentry=gray,lightgray
|
|
|
|
|
label=black,lightgray
|
|
|
|
|
listbox=black,lightgray
|
2023-05-29 22:20:46 +02:00
|
|
|
|
actlistbox=black,blue
|
2023-05-29 21:49:55 +02:00
|
|
|
|
sellistbox=lightgray,black
|
|
|
|
|
actsellistbox=lightgray,black
|
|
|
|
|
textbox=black,lightgray
|
2023-05-29 22:20:46 +02:00
|
|
|
|
acttextbox=black,blue
|
2023-05-29 21:49:55 +02:00
|
|
|
|
emptyscale=,gray
|
2023-05-29 22:20:46 +02:00
|
|
|
|
fullscale=,blue
|
2023-05-29 21:49:55 +02:00
|
|
|
|
helpline=white,black
|
|
|
|
|
roottext=lightgrey,black
|
|
|
|
|
'
|
2023-04-11 10:30:27 +02:00
|
|
|
|
|
|
|
|
|
# Home Dir Cleanup
|
2023-03-29 16:15:06 +02:00
|
|
|
|
export XDG_DESKTOP_DIR="$HOME/Desktop"
|
|
|
|
|
export XDG_DOCUMENTS_DIR="$HOME/Documents"
|
|
|
|
|
export XDG_DOWNLOAD_DIR="$HOME/Downloads"
|
|
|
|
|
export XDG_MUSIC_DIR="$HOME/Music"
|
|
|
|
|
export XDG_PICTURES_DIR="$HOME/Pictures"
|
|
|
|
|
export XDG_PUBLICSHARE_DIR="$HOME/Public"
|
|
|
|
|
export XDG_TEMPLATES_DIR="$HOME/Templates"
|
|
|
|
|
export XDG_VIDEOS_DIR="$HOME/Videos"
|
|
|
|
|
export XDG_CONFIG_HOME="$HOME/.config"
|
|
|
|
|
export XDG_DATA_HOME="$HOME/.local/share"
|
|
|
|
|
export XDG_CACHE_HOME="$HOME/.cache"
|
2023-06-15 11:47:02 +02:00
|
|
|
|
export XDG_STATE_HOME="$HOME/.local/state"
|
2023-05-24 16:53:44 +02:00
|
|
|
|
export XINITRC="$XDG_CONFIG_HOME/X11/xinitrc"
|
2023-06-04 11:31:11 +02:00
|
|
|
|
export STOW_DIR="$XDG_DATA_HOME/stow"
|
|
|
|
|
export DOTS_DIR="$STOW_DIR/dots"
|
2023-05-24 16:53:44 +02:00
|
|
|
|
|
2023-07-28 22:18:23 +02:00
|
|
|
|
export WORKON_HOME="$HOME/.local/share/virtualenv"
|
2023-03-29 16:15:06 +02:00
|
|
|
|
export ZSH_COMPDUMP="$XDG_CACHE_HOME/zcompdump"
|
|
|
|
|
export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch-config"
|
|
|
|
|
export GTK2_RC_FILES="$XDG_CONFIG_HOME/.config}/gtk-2.0/gtkrc-2.0"
|
|
|
|
|
export LESSHISTFILE="-"
|
|
|
|
|
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
|
|
|
|
|
export INPUTRC="$XDG_CONFIG_HOME/shell/inputrc"
|
|
|
|
|
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
|
|
|
|
|
export WINEPREFIX="$XDG_DATA_HOME/wineprefixes/default"
|
|
|
|
|
export TMUX_TMPDIR="$XDG_RUNTIME_DIR"
|
|
|
|
|
export ANDROID_HOME="$XDG_DATA_HOME/android"
|
|
|
|
|
export CARGO_HOME="$XDG_DATA_HOME/cargo"
|
|
|
|
|
export GOPATH="$XDG_DATA_HOME/go"
|
|
|
|
|
export ANSIBLE_CONFIG="$XDG_CONFIG_HOME/ansible/ansible.cfg"
|
|
|
|
|
export ANSIBLE_HOME="$XDG_DATA_HOME/ansible"
|
2023-10-23 15:30:36 +02:00
|
|
|
|
export ANSIBLE_VAULT_IDENTITY_LIST="infrastructure@~/.secrets/vaultpass_infrastructure,ssl@~/.secrets/vaultpass_ssl"
|
2023-03-29 16:15:06 +02:00
|
|
|
|
export UNISON="$XDG_DATA_HOME/unison"
|
|
|
|
|
export HISTFILE="$XDG_DATA_HOME/history"
|
|
|
|
|
export GRADLE_USER_HOME="$XDG_DATA_HOME/gradle"
|
|
|
|
|
export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" # WARN: This line can break some display managers
|
2023-04-11 10:30:27 +02:00
|
|
|
|
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
|
|
|
|
|
export NODE_REPL_HISTORY="$XDG_DATA_HOME/node_repl_history"
|
|
|
|
|
export CUDA_CACHE_PATH="$XDG_CACHE_HOME/nv"
|
2023-06-15 13:21:37 +02:00
|
|
|
|
export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=$XDG_CONFIG_HOME/java"
|
2023-04-11 10:30:27 +02:00
|
|
|
|
export MOZBUILD_STATE_PATH="$XDG_DATA_HOME/mozbuild"
|
2023-06-30 10:01:40 +02:00
|
|
|
|
export W3M_DIR="$XDG_DATA_HOME/w3m"
|
2023-06-15 13:21:37 +02:00
|
|
|
|
export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
|
2023-06-30 10:01:40 +02:00
|
|
|
|
export PYTHONSTARTUP="/etc/python/pythonrc"
|
2023-03-29 16:15:06 +02:00
|
|
|
|
|
2023-04-04 17:44:51 +02:00
|
|
|
|
localpath="$(find -L ~/.local/bin -type d -printf %p: | sed 's/.$//')"
|
2023-06-15 17:27:56 +02:00
|
|
|
|
fpath=($XDG_CONFIG_HOME/zsh/completions $fpath)
|
2023-04-04 17:44:51 +02:00
|
|
|
|
export PATH="$PATH:$HOME/.local/share/npm-global/bin:$localpath"
|
2023-05-25 18:58:01 +02:00
|
|
|
|
|
|
|
|
|
export NVM_DIR="$HOME/.config/nvm"
|
|
|
|
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
|
|
|
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
|
|
|
|
|
2023-06-01 12:38:34 +02:00
|
|
|
|
unset SSH_AGENT_PID
|
|
|
|
|
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
|
|
|
|
|
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
|
|
|
|
fi
|
|
|
|
|
gpgconf --launch gpg-agent
|
|
|
|
|
|
2023-05-25 18:58:01 +02:00
|
|
|
|
if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ]; then
|
2023-05-31 11:27:31 +02:00
|
|
|
|
exec startx $XINITRC
|
2023-05-25 18:58:01 +02:00
|
|
|
|
fi
|