X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Ftmux.conf;h=43e280f15cca1600966f7c3ef6201e3624dc22fa;hb=HEAD;hp=ea20b33b153ca89f9a3af9c35dd9af759f5dbec6;hpb=71bdc48d190a5369fff28a97c828db7b1edf10a9;p=grml-etc-core.git diff --git a/etc/tmux.conf b/etc/tmux.conf index ea20b33..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 \; source-file -q ~/.tmux.conf.local \; display-message "~/.tmux.conf[.local] 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 @@ -68,4 +69,5 @@ 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 -source-file -q ~/.tmux.conf.local +if-shell "! (env | grep -q TMUX=/tmp/tmate)" \ + "source-file -q ~/.tmux.conf.local"