-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
67 lines (51 loc) · 1.72 KB
/
tmux.conf
File metadata and controls
67 lines (51 loc) · 1.72 KB
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
# Set default shell
set -g default-shell /bin/zsh
set-option -g default-command "reattach-to-user-namespace -l /bin/zsh"
# Improve colors
set-option -g default-terminal "screen-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"
# Remove ESC delay
set -sg escape-time 0
set -g status-interval 0
# Setup 'v' to begin selection as in Vim
bind-key -Tcopy-mode-vi 'v' send -X begin-selection
bind-key -Tcopy-mode-vi 'y' send -X copy-pipe 'reattach-to-user-namespace pbcopy'
bind-key -Tcopy-mode-vi 'y' send -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
bind-key -Tcopy-mode-vi Escape send -X cancel
bind-key -Tcopy-mode-vi V send -X rectangle-toggle
# Remove administrative debris (session name, hostname, time) in status bar
set -g status-left ''
set -g status-right ''
# Act like GNU screen
unbind C-b
set -g prefix C-a
# Force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
# Vim bindings for selecting panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# History limit
set -g history-limit 10000
# Clear the screen
bind -n C-k clear-history
# Set vim-like keybindings
setw -g mode-keys vi
# Mouse scrolling
set -g mouse on
# Plugins
set -g @plugin 'catppuccin/tmux'
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Theme
set -g @catppuccin_flavour 'mocha'
# Show current directory in window name
set-option -g automatic-rename on
set-option -g automatic-rename-format '#{b:pane_current_path}'
# Catppuccin window format with directory
set -g @catppuccin_window_current_text "#{b:pane_current_path}"
set -g @catppuccin_window_default_text "#{b:pane_current_path}"
# Initialize TMUX plugin manager
run '~/.tmux/plugins/tpm/tpm'