summaryrefslogtreecommitdiff
path: root/config/shell/profile
blob: c12de58e5d8c60c3294c8ac90af461a41e0f1b1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Directories and Files
export BASHRC="${HOME}/.bashrc"
export ZSHRC="${HOME}/.zshrc"
export XINITRC="${XDG_CONFIG_HOME}/x11/xinitrc"
export XDG_BIN_DIR="${HOME}/.local/bin"
export XDG_CACHE_HOME="${HOME}/.cache"
export XDG_CONFIG_HOME="${HOME}/.config"
export XDG_DATA_HOME="${HOME}/.local/share"
export XDG_STATE_HOME="${HOME}/.local/state"

mkdir -p "${XDG_BIN_DIR}"
export PATH="${XDG_BIN_DIR}:${PATH}"

# Environment variables
[ -x "$(command -v vim)" ] && export EDITOR="vim"
[ -x "$(command -v nvim)" ] && export EDITOR="nvim"
[ -x "$(command -v alacritty)" ] && export  TERM="alacritty"
[ -x "$(command -v st)" ] && export  TERM="st"
[ -x "$(command -v qutebrowser)" ] && export  BROWSER="qutebrowser"
[ -x "$(command -v firefox)" ] && export  BROWSER="firefox"

export MAKEFLAGS="-j8" # Reduce compile times

# Source bashrc for tty
[ -n "${BASH_VERSION}" ] && [ -f "${BASHRC}" ] && . "${BASHRC}"