aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2021-03-08 19:03:05 -0500
committertdro <tdro@users.noreply.github.com>2021-03-08 19:03:05 -0500
commitfb801f60d327de9f4288af0d80f98e9cbd92df16 (patch)
treeb20cf753c9dfa4fcdc61a2102c2582ae6010875e
parentbc442f2a72051e965feb4be17181fdf3e6a3f167 (diff)
downloaddotfiles-fb801f60d327de9f4288af0d80f98e9cbd92df16.tar.gz
dotfiles-fb801f60d327de9f4288af0d80f98e9cbd92df16.tar.bz2
dotfiles-fb801f60d327de9f4288af0d80f98e9cbd92df16.zip
.bash_profile: Export XDG directories first
-rw-r--r--.bash_profile9
1 files changed, 6 insertions, 3 deletions
diff --git a/.bash_profile b/.bash_profile
index 27fe0c4..0c15779 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -34,6 +34,11 @@ PS1_SSHD='$(E=$? && [ "$E" = 0 ] || echo "$E ")\[\e[0;32m\]\W\[\e[0m\] \[\e[0;32
# path exports
prefixPath "$HOME/.local/bin";
+# xdg exports
+export XDG_CACHE_HOME="$HOME/.cache"
+export XDG_CONFIG_HOME="$HOME/.config"
+export XDG_DATA_HOME="$HOME/.local/share"
+
# general exports
export CARGO_HOME="$XDG_CACHE_HOME/cargo"
export EDITOR=vim
@@ -56,9 +61,7 @@ export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
export SUDO_ASKPASS="$HOME/.local/bin/rofi-askpass"
export TERMINAL=urxvt
export WEECHAT_HOME="$XDG_CONFIG_HOME/weechat"
-export XDG_CACHE_HOME="$HOME/.cache"
-export XDG_CONFIG_HOME="$HOME/.config"
-export XDG_DATA_HOME="$HOME/.local/share"
+
command -v groff > /dev/null 2>&1 && \
GROFF_FONT_PATH="$HOME/.nix-profile/share/groff/$(groff -v | head -n1 | awk '{ print $4 }')/font" && \
export GROFF_FONT_PATH