-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample.tmux.conf.erb
47 lines (39 loc) · 1.28 KB
/
sample.tmux.conf.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# vim:set ft=tmux:
set -g default-shell <%= ENV['SHELL'] %>
set -g default-terminal "tmux-256color"
set -s escape-time 0
# window/pane settings
set -g base-index 1
set -g display-panes-time 10000 # msec
set -g renumber-windows on
setw -g automatic-rename on
setw -g pane-base-index 1
# environments
setenv -g FZF_TMUX 1
<% if uname == "Darwin" %>
# for macOS
set -g default-command "reattach-to-user-namespace -l zsh"
<% end %>
set -g prefix C-t
bind C-t send-prefix # puts "C-t" twice, send "C-t"
unbind C-b
bind C-r source ${HOME}/.tmux.conf\; display-message "Reload Config."
bind . display-panes
<% if tmux_version <= 1.8 %>
unbind -t vi-copy Enter
bind -t vi-copy v begin-selection
bind -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
bind -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
<% else %>
bind c new-window -c "#{pane_current_path}"
bind % split-window -hc "#{pane_current_path}"
bind '"' split-window -vc "#{pane_current_path}"
<% end %>
# status bar settings
set -g status-left-length 50
set -g status-left "#[bg=magenta] #h [s#S]\
#{?client_prefix,#[reverse],} <<%= prefix_key %>> "
set -g status-right-length 25
set -g status-right "#[bg=cyan] %Y-%m-%d %H:%M:%S "
if 'test "${REMOTEHOST}${SSH_CONNECTION}"'\#comment for test
'set -g status-right ""'