-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
executable file
·116 lines (90 loc) · 3.41 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# List of plugins
# set-option -g status-utf8
# setw -g utf8 on
setw -g aggressive-resize on
unbind C-b
set -g prefix C-t
bind C-t send-prefix
# Archlinux - https://gist.github.com/anonymous/6bebae3eb9f7b972e6f0
# set -sg escape-time 1
# set -g base-index 1
# setw -g pane-base-index 1
# Mouse works as expected
setw -g mouse
set -g set-clipboard external
#set -g set-clipboard off
# setw -g mode-mouse on
# set -g mouse-select-pane on
# set -g mouse-resize-pane on
# set -g mouse-select-window on
setw -g monitor-activity on
set -g visual-activity on
set -g mode-keys vi
set -g history-limit 100000
# y and p as in vim
#bind Escape copy-mode
#unbind p
bind P paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
#bind-key -T copy-mode-vi y send-keys -X copy-selection
#bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xsel -i -b"
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xsel -i -p && xsel -o -p | xsel -i -b"
#bind-key -T copy-mode-vi y send-keys -X copy-pipe "xsel -i -b"
#bind-key -T vi-copy y send-keys copy-pipe "tmux save-buffer - | xsel -ib"
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
##bind-key -n C-y run "xsel | tmux load-buffer - ; tmux paste-buffer"
#bind -t vi-copy 'v' begin-selection
##bind -t vi-copy 'y' copy-selection
#bind -t vi-copy 'y' copy-pipe 'xsel -i'
#bind -t vi-copy 'Space' halfpage-down
#bind -t vi-copy 'Bspace' halfpage-up
# extra commands for interacting with the ICCCM clipboard
#bind C-c run "tmux save-buffer - | xclip -i -sel clipboard"
#bind C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer"
#Paste!
bind C-p run "tmux set-buffer \"$(xsel -b)\"; tmux paste-buffer"
# easy-to-remember split pane commands
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
unbind '"'
unbind %
# moving between panes with vim movement keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# moving between windows with vim movement keys
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# resize panes with vim movement keys
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# reload
bind r source-file ~/.tmux.conf
set -g @plugin 'tmux-plugins/tpm'
#set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-sidebar'
#set -g @sidebar-tree-pager 'view -'
set -g @sidebar-tree-command 'tree -C'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @yank_selection 'primary'
set -g @shell_mode 'vi'
#set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-sessionist'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g status-right '#{prefix_highlight} | %a %Y-%m-%d %H:%M'
## set the default TERM
# set -g default-terminal screen
#Environment for kakoune
set -g update-environment 'KAKSESSION DISPLAY SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY TERM'
#set-option update-environment 'KAKSESSION DISPLAY SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY TERM'
## determine if we should enable 256-colour support
# if "[[ ${TERM} =~ 256color || ${TERM} == fbterm ]]" 'set -g default-terminal screen-256color'
# Plugin manager
run '~/.tmux/plugins/tpm/tpm'
set -s escape-time 0
# set -g default-shell /bin/zsh
# set -g default-command /Users/geierph/.nix-profile/bin/fish
# set -g default-shell /Users/geierph/.nix-profile/bin/fish