forked from axonasif/dotfiles.public
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
83 lines (61 loc) · 2.36 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
# ln -s ~/Documents/work/dotfiles.public/.tmux.conf /Users/palanikannan/.tmux/.tmux.conf ✔
set -g default-terminal "xterm-256color"
set -g default-terminal screen-256color
set-option -ga terminal-overrides ",xterm-256color:Tc"
set-option -g status-position top
setw -g xterm-keys on
set -s escape-time 10 # faster command sequences
set -sg repeat-time 600 # increase repeat timeout
set -s focus-events on
set -g prefix C-a # Ctrl + a prefix
unbind C-b
bind C-a send-prefix
set -q -g status-utf8 on # expect UTF-8 (tmux < 2.2)
setw -q -g utf8 on
set -g history-limit 5000 # boost history
# splitting panes
unbind %
bind | split-window -h -c "#{pane_current_path}"
unbind '"'
bind - split-window -v -c "#{pane_current_path}"
# reload configuration
unbind r
bind r source-file ~/.tmux.conf
# window resize
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5
bind -r m resize-pane -Z
set -g mouse on
set -g focus-events on
set -g status-style bg=default
set -g status-left-length 90
set -g status-right-length 90
set -g status-justify centre
# kill session
bind -r w kill-session
# enable vim mode in tmux
set-window-option -g mode-keys vi
# keybindings
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-selection
unbind -T copy-mode-vi MouseDragEnd1Pane # don't exit copy mode when dragging with mouse
# Start windows and panes at 1, not 0
set -g base-index 1
# remove delay for exiting insert mode with ESC in Neovim
set -sg escape-time 10
# list of tpm plugins
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'jimeh/tmuxifier'
set -g @plugin 'catppuccin/tmux'
# tpm plugin
set -g @plugin 'tmux-plugins/tpm'
# tmux popup -E "lazygit"
bind C-g display-popup -h 90% -w 90% -E "lazygit"
# bind C-g display-popup -h 90% -w 90% -E "gitui -t mocha.ron"
unbind-key -n ^f
bind C-f display-popup -E "tmux list-sessions | sed -E 's/:.*$//' | grep -v \"^$(tmux display-message -p '#S')\$\" | fzf --reverse | xargs tmux switch-client -t"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'