-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_tmux.conf
106 lines (78 loc) · 3.2 KB
/
dot_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
97
98
99
100
101
102
103
104
105
106
run-shell "powerline-daemon -q || exit 0"
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'erikw/tmux-powerline'
set -g @plugin 'laktak/extrakto'
set -g @plugin 'thewtex/tmux-mem-cpu-load'
#run-shell "tmux source find ~/.local -type f -path '*/tmux/powerline-base.conf' -print -quit"
run-shell "tmux source $(find ~/.local -type f -path '*/tmux/powerline.conf' -print -quit)"
# set window split
# bind-key v split-window -h
# bind-key b split-window
# clear
bind-key v send-keys -R \; clear-history
set -g @extrakto_fzf_tool ~/.fzf/bin/fzf
set -g @extrakto_popup_size 75%,75%
set -g @extrakto_fzf_layout "default"
set -g @extrakto_copy_key "tab"
set -g @extrakto_edit_key "enter"
set -g allow-passthrough on
bind-key -n M-f copy-mode\; command-prompt -p "(search down)" "send -X search-forward \"%%%\""
set -ga terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[ q'
set -g allow-passthrough on
set-option -g default-shell $SHELL
# C-b is not acceptable -- Vim uses it
#set-option -g prefix C-a
#bind-key C-a last-window
set-option -g prefix F1
bind-key F1 last-window
# Please let me scroll
set-option -g history-limit 10000
# Allows for faster key repetition
set -s escape-time 0
set -g base-index 1 # start windows numbering at 1
setw -g pane-base-index 1 # make pane numbering consistent with windows
set -g renumber-windows on # renumber windows when a window is closed
set -g set-titles on # set terminal title
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on
# Allows us to use C-a a <command> to send commands to a TMUX session inside
# another TMUX session
bind-key a send-prefix
# Activity monitoring
setw -g monitor-activity on
set -g visual-activity on
set -g visual-bell on
# Use vim keybindings in copy mode
setw -g mode-keys vi
setw -g xterm-keys on
# Setup 'v' to begin selection as in Vim
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-pipe "pbcopy"
bind-key q kill-window
# hjkl pane traversal
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# set to main-horizontal, 60% height for main pane
bind m set-window-option main-pane-height 200\; select-layout main-horizontal
bind-key C command-prompt -p "Name of new window: " "new-window -n '%%'"
# reload config
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
set -g default-terminal "xterm-kitty"
set-option -sa terminal-features ',xterm-kitty:RGB'
set -as terminal-overrides ',screen-256color*:Tc:sitm=\E[3m'
set -ga terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[ q'
set -g mouse on
set-option -g focus-events on
set -g monitor-activity on
set -g visual-activity on
# bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe "reattach-to-user-namespace pbcopy"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'