Use ${XDG_CACHE_HOME}/tmux instead of hardcoding ~/.cache/tmux - dotfiles - leot's dotfiles
(HTM) hg clone https://bitbucket.org/iamleot/dotfiles
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset f13ce9880d30bc44807d238b91ed74375bc4a8c8
(DIR) parent 1f005e65a9b8c82b84fab409a9fd22dde88354e2
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Mon, 24 Sep 2018 00:34:53
Use ${XDG_CACHE_HOME}/tmux instead of hardcoding ~/.cache/tmux
Please note that this will need to create a ${XDG_CACHE_HOME}/tmux
directory before using the respective bindings (e.g. via a local
~/bin/tmux or other ways).
Diffstat:
tmux.conf | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff -r 1f005e65a9b8 -r f13ce9880d30 tmux.conf
--- a/tmux.conf Sun Sep 23 23:42:06 2018 +0200
+++ b/tmux.conf Mon Sep 24 00:34:53 2018 +0200
@@ -30,9 +30,9 @@
bind-key N switch-client -n
bind-key P switch-client -p
-bind-key e capture-pane -S '-' -E '-' -J \; save-buffer ~/.cache/tmux/curpane \; run-shell "sed -E -i 's/ +$//g' ~/.cache/tmux/curpane >/dev/null 2>&1" \; split-window ${EDITOR} ~/.cache/tmux/curpane
+bind-key e capture-pane -S '-' -E '-' -J \; save-buffer ${XDG_CACHE_HOME}/tmux/curpane \; run-shell "sed -E -i 's/ +$//g' ${XDG_CACHE_HOME}/tmux/curpane >/dev/null 2>&1" \; split-window ${EDITOR} ${XDG_CACHE_HOME}/tmux/curpane
bind-key m command-prompt "move-pane -t '%%'"
-bind-key u capture-pane -J \; save-buffer ~/.cache/tmux/curpane \; run-shell "dplumb < ~/.cache/tmux/curpane >/dev/null 2>&1"
+bind-key u capture-pane -J \; save-buffer ${XDG_CACHE_HOME}/tmux/curpane \; run-shell "dplumb < ${XDG_CACHE_HOME}/tmux/curpane >/dev/null 2>&1"
bind-key Escape copy-mode