-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf.win
81 lines (75 loc) · 2.45 KB
/
.tmux.conf.win
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
# --------------
# bind
# --------------
# prefix
unbind C-b
set -g prefix C-s
# reloading command
unbind r
bind C-r source-file ~/.tmux.conf \; display-message "reloaded"
# resize pane
bind -r H resize-pane -L 10
bind -r J resize-pane -D 10
bind -r K resize-pane -U 10
bind -r L resize-pane -R 10
# monitor
bind C-s run "tmux last-pane || tmux last-window || tmux new-window"
#set-window-option -g monitor-activity on
# bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind 'C' new-window -c "#{pane_current_path}";
bind '%' split-window -h -c "#{pane_current_path}";
bind '"' split-window -v -c "#{pane_current_path}";
# ---------
# general
# ---------
set -sg escape-time 0
#set-window-option -g mode-keys vi
set -g status-interval 30
set -g base-index 1
set -g pane-base-index 1
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
set -g default-terminal xterm
set-option -g renumber-windows on;
set-option -g history-limit 100000
set-option -g terminal-overrides "xterm-color:khome=\033[1~"
# --------------
# status
# --------------
set -g status-position top;
set -g status-fg white
set -g status-bg colour235
set -g status-left '[#[fg=cyan,bold]#(whoami)#[default]]'
set -g status-right-length 80
set -g status-right-bg colour235
set -g status-right '#[fg=white][%Y/%m/%d(%a)%H:%M]#[default]'
set -g status-right \
"#{?client_prefix,#[reverse],}"\
"#[fg=cyan][%Y/%m/%d(%a)%H:%M]#[default]"
# "#[fg=white]#(${HOME}/dotfiles/bin/git-echo-username-and-email)"\
# "#[fg=white]#(${HOME}/dotfiles/bin/git-echo-branch-tmux-current-pane)"\
# コピーモードのキーバインドをviライクにする
setw -g mode-keys vi
# ウィンドウ名が実行中のコマンド名になるのを止める
setw -g automatic-rename off
# --------------
# window
# --------------
setw -g window-status-current-fg black
setw -g window-status-current-bg white
# set-window-option -g window-status-format " #I: #W "
# set-window-option -g window-status-current-format "#[fg=colour255,bg=colour27,bold] #I: #W "
# --------------
# pane
# --------------
# pane-active-border
set -g pane-active-border-fg white
set -g pane-active-border-bg black
# --------------
# !Win Only
# --------------
# msys2 clipboard
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "cat > /dev/clipboard"
# zsh
set-option -g default-shell /usr/bin/zsh