summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2019-02-03 15:03:08 -0800
committerMike Crute <mike@crute.us>2019-02-03 15:03:08 -0800
commitd80b34b8617249030fa2fb034f6deb5aa152bfd8 (patch)
tree905dff6bbe685b3a2fcbf03a6dfa6298f32b2337 /.bashrc
parentcc3bef4874599620c6575a2d7b7c9f00d88a8055 (diff)
downloaddotfiles-d80b34b8617249030fa2fb034f6deb5aa152bfd8.tar.bz2
dotfiles-d80b34b8617249030fa2fb034f6deb5aa152bfd8.tar.xz
dotfiles-d80b34b8617249030fa2fb034f6deb5aa152bfd8.zip
Export XDG variables
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc12
1 files changed, 12 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index 311845d..e8e6f49 100644
--- a/.bashrc
+++ b/.bashrc
@@ -74,6 +74,18 @@ function var_contains()
74} 74}
75 75
76# 76#
77# XDG SETUP
78#
79export XDG_DATA_HOME=${XDG_DATA_HOME:-$HOME/.local/share}
80export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-$HOME/.config}
81export XDG_CACHE_HOME=${XDG_CACHE_HOME:-$HOME/.cache}
82
83# systemd or something else should set this but just in-case
84if [[ -z "$XDG_RUNTIME_DIR" ]]; then
85 export XDG_RUNTIME_DIR=$(mktemp -d)
86fi
87
88#
77# SHELL INITIALIZATION 89# SHELL INITIALIZATION
78# 90#
79export HISTCONTROL="erasedups:ignoreboth" 91export HISTCONTROL="erasedups:ignoreboth"