-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
57 lines (43 loc) · 1.71 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
# keybind
unbind-key C-b
set-option -g prefix C-q
bind-key C-q send-prefix
# history size
set-option -g history-limit 10000
# mouse
# set-option -g mouse-select-pane on
# set-option -g mouse-select-window on
# set-option -g mouse-resize-pane on
# set-option -g mode-mouse on
set-option -g mouse on
# title
set-option -g set-titles on
set-option -g set-titles-string "#T"
# set-option -g set-titles-string "#{session_name} - #{host}"
# set-option -g allow-rename on
# set-option -g automatic-rename on
# set-window-option -g automatic-rename off
# set -g automatic-rename on
# set -g window-status-format '#I:#{?#{m:#W,zsh},#(basename #{pane_current_path}),#W}#F'
# set -g window-status-current-format '#I:#{?#{m:#W,zsh},#(basename #{pane_current_path}),#W}#F'
# set -g window-status-format '#I:#W#F'
# set -g window-status-current-format '#I:#W#F'
# term
# set -g default-terminal "screen-256color"
set -g default-terminal "xterm-256color"
# set-option -g status-left '#[fg=cyan,bg=#303030]#{?client_prefix,#[reverse],} tmux #[default]'
#===================================
# tpm - Tmux Plugin Manager
#===================================
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Automatic restore tmux session
set -g @continuum-restore 'on'
# Initialize TMUX plugin manager
# (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# Managing plugins via the command line. キーバインド使わずコマンドでtpmを操作する方法.
# https://github.com/tmux-plugins/tpm/blob/master/docs/managing_plugins_via_cmd_line.md
# https://gitlab.com/gnachman/iterm2/-/wikis/tmux-Integration-Best-Practices