forked from strozw/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
92 lines (70 loc) · 3.02 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
#################################################################
# tmux plugin manager
#################################################################
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'odedlaz/tmux-status-variables'
set -g @plugin 'jimeh/tmux-themepack'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'tmux-plugins/tmux-urlview'
#set -g @plugin 'odedlaz/tmux-onedark-theme'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
set -g @prefix_highlight_fg 'white'
set -g @prefix_highlight_bg 'blue'
#set -g @themepack 'basic'
#set -g @themepack 'powerline/default/gray'
#set -g @themepack 'powerline/double/green'
# source-file ~/.vim/plugged/iceberg-dark/.tmux/iceberg.tmux.conf
# set -g status-right "#[fg=#1e2132,bg=#1e2132,nobold,nounderscore,noitalics] #[fg=#c6c8d1,bg=#1e2132] #{sysstat_cpu} #[fg=#2e3244,bg=#1e2132,nobold,nounderscore,noitalics] #[fg=#c6c8d1,bg=#2e3244] #(curl icanhazip.com) #[fg=#454b68,bg=#2e3244,nobold,nounderscore,noitalics] #[fg=#c6c8d1,bg=#454b68,bold] #H #{prefix_highlight} "
#
#################################################################
# Default SHELL
#################################################################
set-option -g default-shell $SHELL
#################################################################
# Key Option
#################################################################
# Prefix
set-option -ag prefix C-t
unbind-key C-b
bind-key C-t send-prefix
# pane change bind like vim window changes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind C-l send-keys 'C-l'
#bind -n C-k clear-history
bind r source-file ~/.tmux.conf \; display-message "Reload Config!!"
# unbind e
# bind e set-window-option synchronize-panes\; display-message "synchronize-panes #{?pane_synchronized,on,off}"
# pane size
bind-key -n M-k resize-pane -U 1
bind-key -n M-j resize-pane -D 1
bind-key -n M-h resize-pane -L 1
bind-key -n M-l resize-pane -R 1
# 現在のパスを引き継ぐ
bind c new-window -c "#{pane_current_path}"
bind % split-window -hc "#{pane_current_path}"
bind '"' split-window -vc "#{pane_current_path}"
# vi option
set-window-option -g mode-keys vi
#################################################################
# GUI Option
#################################################################
# mouse
set-window-option -g mouse on
# color
set-environment -g NCURSES_NO_UTF8_ACS 0
set-option -g terminal-overrides ",xterm-256color-italic:Tc"
# status line
set-option -g status-position top
set-window-option -g window-status-format ' #I:#W ' # naked windows w/ no asterisk
set-window-option -g window-status-current-format ' #I:#W ✔ ' # naked active window w/ no asterisk