tmux-plugins / tmux-sensible

basic tmux settings everyone can agree on
MIT License
1.73k stars 90 forks source link

XDG-friendly config reload #62

Closed setsevireon closed 3 years ago

setsevireon commented 3 years ago

prefix + R is currently bound to sourcing ~/.tmux.conf. For anyone using ~/.config/tmux/tmux.conf or ${XDG_CONFIG_HOME}/tmux/tmux.conf, this binding will be of no use, perhaps even misleading.

This patch tests if the file ${XDG_CONFIG_HOME:-$HOME/.config}/tmux/tmux.conf exists, if affirmative, it sources it, if not, it sources ~/.tmux.conf.

bruno- commented 3 years ago

Thanks