-
Notifications
You must be signed in to change notification settings - Fork 11
/
.tmux.conf
executable file
·96 lines (79 loc) · 2.72 KB
/
.tmux.conf
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# ------------------------------------------------------------------------
# tmux configuraton
# ------------------------------------------------------------------------
# Prefix
set-option -g prefix C-o
# View
set -g status-interval 5
set -g status-left-length 16
set -g status-right-length 50
set -g status-bg black
set -g status-fg white
set-window-option -g pane-base-index 1
# Option
set-window-option -g automatic-rename off
set-window-option -g mode-keys emacs
# set-option -g mouse-select-pane on
set-option -g base-index 1
# KeyBindings
unbind l
unbind ^C
bind C-r source-file ~/.tmux.conf
bind C-t next-window
bind c new-window
# bind 1 break-pane
# bind 2 split-window -v
# bind 3 split-window -h
bind -r C-h resize-pane -L 6
bind -r C-l resize-pane -R 6
bind -r C-j resize-pane -D 6
bind -r C-h resize-pane -L 6
bind -r s swap-pane -U
bind k kill-pane
bind K kill-window
bind i display-panes
bind y copy-mode
# pomo
# https://github.com/visionmedia/pomo
# set-option -g status-right '#(cat ~/.pomo_stat)'
# set -g mode-mouse on
# set -g mouse-resize-pane on
# set -g mouse-select-pane on
# set -g mouse-select-window on
# clipboardに書き出し
# bind-key > save-buffer ~/.tmux-buffer \; run-shell 'xsel -p -i < ~/.tmux-buffer' \; display-message "Copied to clipboard."
bind-key > save-buffer ~/.tmux-buffer \; run-shell 'xsel -b -i < ~/.tmux-buffer' \; display-message "Copied to clipboard."
bind-key < if-shell 'xsel -p -o > ~/.tmux-buffer' 'load-buffer ~/.tmux-buffer ; paste-buffer'
# ------------------------------------------------------------------------
#; Name : tmux-powerline
#; Function : colorful bar
#; History : Add 2014.01.13
#; Install : git clone https://github.com/erikw/tmux-powerline
#; ------------------------------------------------------------------------
# set-option -g status on
# set-option -g status-interval 2
# set-option -g status-utf8 on
# set-option -g status-justify "centre"
# set-option -g status-left-length 60
# set-option -g status-right-length 90
# set-option -g status-left "#(~/.tmux/tmux-powerline/powerline.sh left)"
# set-option -g status-right "#(~/.tmux/tmux-powerline/powerline.sh right)"
#===================================
# tpm - Tmux Plugin Manager
#===================================
# Plugins
set -g @plugin 'tmux-plugins/tpm'
# Initialize TMUX plugin manager
# (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# Plugins
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
#===================================
# Auto start tmux and restore
#===================================
# auto start terminal
set -g @continuum-boot 'on'
set -g @continuum-boot-options 'xterm'
# auto restore tmux
set -g @continuum-restore 'on'