From fb801f60d327de9f4288af0d80f98e9cbd92df16 Mon Sep 17 00:00:00 2001 From: tdro Date: Mon, 8 Mar 2021 19:03:05 -0500 Subject: .bash_profile: Export XDG directories first --- .bash_profile | 9 ++++++--- 1 file 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 -- cgit v1.2.3