@@ -27,11 +27,17 @@ bind-key j join-pane -s !
27
27
bind-key J join-pane
28
28
29
29
# ## Move current window to session named "bg" (and create session if it does not exist)
30
- bind-key B if-shell " ! tmux has-session -t bg" " new-session -d -s bg" \; move-window -t bg
30
+ bind-key B if-shell ' ! tmux has-session -t bg' {
31
+ new-session -d -s bg
32
+ move-window -t bg
33
+ }
31
34
32
- # ## Reload Config
33
- if-shell " ! (env | grep -q TMUX=/tmp/tmate)" \
34
- " bind-key R source-file ~/.tmux.conf \\ ; source-file -q ~/.tmux.conf.local \\ ; display-message '~/.tmux.conf[.local] reloaded'"
35
+ # ## Reload User Configs
36
+ if-shell ' ! (env | grep -q TMUX=/tmp/tmate)' {
37
+ bind-key R source-file ~ /.tmux.conf
38
+ source-file -q ~ /.tmux.conf.local
39
+ display-message " ~/.tmux.conf[.local] reloaded"
40
+ }
35
41
36
42
# ##rebind keys
37
43
bind-key h next-layout
@@ -62,7 +68,12 @@ set -g status-left "#[fg=white]@#h#[fg=red]:#S#[fg=white] |"
62
68
# set -g status-right-length 16
63
69
# set -g status-right '#[fg=yellow]%Y-%m-%d %H:%M'
64
70
# ## status-right: IPs and Date and Time
65
- if-shell " command -v hostname && hostname --help | grep -q -- -I" { set -g status-right " #[fg=green](net: #(hostname -I | sed -e 's/ [^ ]*:.*$//;s/ / | /g;s/ | $//')) #[fg=yellow]%Y-%m-%d %H:%M" } { set -g status-right ' #[fg=yellow]%Y-%m-%d %H:%M' }
71
+ if-shell ' command -v hostname && hostname --help | grep -q -- -I' {
72
+ set -g status-right " #[fg=green](net: #(hostname -I | \
73
+ sed -e 's/ [^ ]*:.*$//;s/ / | /g;s/ | $//')) #[fg=yellow]%Y-%m-%d %H:%M"
74
+ } {
75
+ set -g status-right ' #[fg=yellow]%Y-%m-%d %H:%M'
76
+ }
66
77
# ## status-right: Time
67
78
# set -g status-right-length 6
68
79
# set -g status-right "#[fg=yellow]%H:%M"
@@ -71,5 +82,6 @@ set-window-option -g window-status-style fg=blue,bg=black
71
82
set-window-option -g window-status-current-style bold
72
83
73
84
# ## source user-specific local configuration file
74
- if-shell " ! (env | grep -q TMUX=/tmp/tmate)" \
75
- " source-file -q ~/.tmux.conf.local"
85
+ if-shell ' ! (env | grep -q TMUX=/tmp/tmate)' {
86
+ source-file -q ~ /.tmux.conf.local
87
+ }
0 commit comments