From 384460ec29dd59c1de6733a234655d5ba63d888f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Tue, 16 Jul 2019 17:43:46 +0200 Subject: [PATCH] Fixed tmux config --- config/shell/shenv | 9 +++++++++ config/shell/shrc | 2 +- config/{ => tmux}/tmux.conf | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-) rename config/{ => tmux}/tmux.conf (84%) diff --git a/config/shell/shenv b/config/shell/shenv index 7a9f2c8..ebb8a19 100644 --- a/config/shell/shenv +++ b/config/shell/shenv @@ -77,6 +77,15 @@ export XAUTHORITY="$HOME/.config/Xauthority" # And for the rest, see aliases direnv JUNKHOME "$HOME/.cache/junkhome" +# For software that did not understand that XDG variables have defaults +direnv XDG_DATA_HOME "$HOME/.local/share" +direnv XDG_CONFIG_HOME "$HOME/.config" +export XDG_DATA_DIRS="/usr/local/share/:/usr/share/" +export XDG_CONFIG_DIRS="/etc/xdg" +direnv XDG_CACHE_HOME "$HOME/.cache" +direnv XDG_RUNTIME_DIR "$HOME/.local/run" +chmod 0700 "$XDG_RUNTIME_DIR" + # Path # Function stolen from Arch Linux /etc/profile diff --git a/config/shell/shrc b/config/shell/shrc index 7fa3871..51461b8 100644 --- a/config/shell/shrc +++ b/config/shell/shrc @@ -54,7 +54,7 @@ alias bower='bower --config.storage.packages=~/.cache/bower/packages --config.st alias gdb='gdb -x $HOME/.config/gdbinit' alias iftop='iftop -c $HOME/.config/iftoprc' alias lmms='lmms --config $HOME/.config/lmmsrc.xml' -alias tmux='tmux -f $HOME/.config/tmux.conf' +alias tmux='tmux -f $HOME/.config/tmux/tmux.conf' # TODO ruby's gem when I find a use for it diff --git a/config/tmux.conf b/config/tmux/tmux.conf similarity index 84% rename from config/tmux.conf rename to config/tmux/tmux.conf index c5aa3a9..1eb28a4 100644 --- a/config/tmux.conf +++ b/config/tmux/tmux.conf @@ -23,4 +23,6 @@ set -g @themepack 'powerline/block/green' set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.cache/tmuxplugins/' # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) +if "test ! -d ~/.cache/tmuxplugins/tpm" \ + "run 'git clone https://github.com/tmux-plugins/tpm ~/.cache/tmuxplugins/tpm && ~/.cache/tmuxplugins/tpm/bin/install_plugins'" run -b '~/.cache/tmuxplugins/tpm/tpm'