projects
/
grml-etc-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tmux.conf: detect running as tmate and disable non-supported features
[grml-etc-core.git]
/
etc
/
tmux.conf
diff --git
a/etc/tmux.conf
b/etc/tmux.conf
index
ea20b33
..
a1ea76d
100644
(file)
--- 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 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
###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
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"