summaryrefslogtreecommitdiff
path: root/.bash_profile
blob: 34b767f190a5aaf26daf4857cd23caf333410a5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#
# ~/.bash_profile
#

[[ -f ~/.bashrc ]] && . ~/.bashrc

export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
export SSH_AUTH_SOCK="XDG_RUNTIME_DIR/ssh-agent.socket"
export MANPAGER='nvim +Man!'

# startx when login, should be put after environmental variables so .xinitrc can use $XDG_CONFIG_HOME 
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
  exec startx
fi