X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=blobdiff_plain;f=etc%2Ftmux.conf;h=ea20b33b153ca89f9a3af9c35dd9af759f5dbec6;hp=71be90b70b4c8fac4a7d96118b9205865c8a6d12;hb=HEAD;hpb=591479d07898f560c765505b16c720e4296d7e68 diff --git a/etc/tmux.conf b/etc/tmux.conf index 71be90b..a1ea76d 100644 --- a/etc/tmux.conf +++ b/etc/tmux.conf @@ -30,7 +30,8 @@ bind-key J join-pane bind-key B if-shell "! tmux has-session -t bg" "new-session -d -s bg" \; move-window -t bg ### Reload Config -bind-key R source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded" +if-shell "! (env | grep -q TMUX=/tmp/tmate)" \ + "bind-key R source-file ~/.tmux.conf \\; source-file -q ~/.tmux.conf.local \\; display-message '~/.tmux.conf[.local] reloaded'" ###rebind keys bind-key h next-layout @@ -66,3 +67,7 @@ set -g status-right '#[fg=yellow]%Y-%m-%d %H:%M' set-window-option -g window-status-style fg=blue,bg=black set-window-option -g window-status-current-style bold + +### source user-specific local configuration file +if-shell "! (env | grep -q TMUX=/tmp/tmate)" \ + "source-file -q ~/.tmux.conf.local"