X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=shell%2F.bashrc;fp=shell%2F.bashrc;h=3cb3c7cca76d09ad46f82bf2640d4c13985f9596;hb=c94b5c084a07c28fcefabb4daa7f83d4a0749c06;hp=27d574af740c3e4d3bbbc4d4467e8242ec537001;hpb=0dbd02ab41dbe96cbbb3fda499f97e857196862d;p=dotfiles.git diff --git a/shell/.bashrc b/shell/.bashrc index 27d574a..3cb3c7c 100644 --- a/shell/.bashrc +++ b/shell/.bashrc @@ -12,7 +12,11 @@ export BROWSER=firefox export PAGER=more export SUDO_ASKPASS=/usr/lib/ssh/ssh-askpass -export NOTMUCH_CONFIG=~/.config/notmuch/config + +# XDG fixes +export NOTMUCH_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}"/notmuch/config +export PASSWORD_STORE_DIR="${XDG_DATA_HOME:-$HOME/.local/share}"/pass +export TMUX_TMPDIR="$XDG_RUNTIME_DIR" export CLEAN_HOME=/opt/clean @@ -27,8 +31,7 @@ alias ls='ls --color=auto' alias grep='grep --color=auto' alias vi=vim alias latexmk='make -f ~/.local/bin/latex.mk' -export TMUX_TMPDIR="$XDG_RUNTIME_DIR" -alias tmux='tmux -f ~/.config/tmux/config' +alias tmux="tmux -f \"${XDG_CONFIG_HOME:-$HOME/.config}/tmux/config\"" alias shutdown="echo \"Are you sure? I\'m Ygdrassil\" && read && shutdown" . /etc/bash_completion