diff options
| author | 0scar <qgt268@alumni.ku.dk> | 2020-08-09 16:55:14 +0000 |
|---|---|---|
| committer | 0scar <qgt268@alumni.ku.dk> | 2020-08-11 12:50:36 +0000 |
| commit | 67a3c6d4264802cb0c506234b24d4c80fa52a76c (patch) | |
| tree | 5a2f44cbec52bd5ecbc9b63768186154370296c7 /.zprofile | |
Initial
Diffstat (limited to '.zprofile')
| -rw-r--r-- | .zprofile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/.zprofile b/.zprofile new file mode 100644 index 0000000..3e68485 --- /dev/null +++ b/.zprofile @@ -0,0 +1,47 @@ +#!/usr/bin/env zsh + +# Configuration +export PATH=$PATH:$HOME/.scripts + +export EDITOR="vim" +export TERMINAL="st" +export BROWSER="firefox-developer-edition" +export READER="zathura" +export PAGER="less" + +# XDG~ +export XDG_CONFIG_HOME="$HOME/.config" +export XDG_DATA_HOME="$HOME/.local/share" +export XDG_CACHE_HOME="$HOME/.cache" + +export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" +export XDEFAULTS="$HOME/.config/x/defaults" +export XRESOURCES="$HOME/.config/x/resources" +export XINITRC="${XDG_CONFIG_HOME:-$HOME/.config}/xinitrc" + +export IPYTHONDIR="${XDG_CACHE_HOME:-$HOME/.cache}/ipython" +export LESSHISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/lesshist" +export INPUTRC="${XDG_CONFIG_HOME:-$HOME/.config}/inputrc" +export ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh" +export ZSH_COMPDUMP=$XDG_CACHE_HOME/zcompdump-$ZSH_VERSION +export ANDROID_SDK_HOME="${XDG_CONFIG_HOME:-$HOME/.config}/android" +export CARGO_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/cargo" +export GOPATH="${XDG_DATA_HOME:-$HOME/.local/share}/go" +export AWS_CONFIG_FILE="${XDG_CONFIG_HOME:-$HOME/.config}/aws/config" +export AWS_SHARED_CREDENTIALS_FILE="${XDG_CONFIG_HOME:-$HOME/.config}/aws/credentials" +export GNUPGHOME="${XDG_CONFIG_HOME:-$HOME/.config}/gnupg" + +export GEM_PATH="${XDG_CACHE_HOME:-$HOME/.cache}/gem" +export RUSTUP_HOME="${XDG_CACHE_HOME:-$HOME/.cache}/rustup" +export CARGO_HOME="${XDG_CACHE_HOME:-$HOME/.cache}/cargo" +export KUBECONFIG="${XDG_CACHE_HOME:-$HOME/.cache}/kube/config" + +export VIMINIT="source ${XDG_CONFIG_HOME:-$HOME/.config}/vimrc" + +# Preferences +export LESS=-R +export MANWIDTH=${MANWIDTH:-80} + +alias irssi="irssi --home=${XDG_DATA_HOME:-$HOME/.config/irssi}" + +[ "$(tty)" = "/dev/tty1" ] && ! pidof Xorg >/dev/null 2>&1 && exec startx |
