-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
73 lines (58 loc) · 2.46 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
# reload
unbind r
bind r source-file ~/.tmux.conf \; display-message "tmux config reloaded"
# set the leader key
unbind-key C-b
set -g prefix C-s
bind-key C-s send-prefix
set -g mouse on
# stop fedora setting the name
set-option -g allow-rename off
#fix the colors
set-option -g default-terminal "xterm-256color"
set-option -ga terminal-overrides ",xterm-256color:RGB"
# Start windows at index 1, not 0
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
# vim keybinding
#bind-key h select-pane -L
#bind-key j select-pane -D
#bind-key k select-pane -U
#bind-key l select-pane -R
# Define Spacemacs-style window management keybindings
bind-key / new-window -c "#{pane_current_path}" # Create a new window
bind-key v split-window -h # Split pane vertically (right window in Spacemacs)
bind-key s split-window -v # Split pane horizontally (below window in Spacemacs)
bind-key d kill-pane # Close the current pane
bind-key n next-window # Switch to next window
bind-key p previous-window # Switch to previous window
bind-key 1 select-window -t 1 # Select window 1
bind-key 2 select-window -t 2 # Select window 2
bind-key 3 select-window -t 3 # Select window 3
bind-key 4 select-window -t 4 # Select window 4
bind-key w choose-window # Show window list
# set the start bar to the top
set-option -g status-position top
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'catppuccin/tmux#v2.1.2'
set -g @catppuccin_flavor "mocha"
set -g @catppuccin_window_text "#W"
set -g @catppuccin_window_current_text "#W"
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'christoomey/vim-tmux-navigator'
# vi mode for copy paste
set-window-option -g mode-keys vi
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-and-cancel
#set -g @plugin 'tmux-plugins/tmux-sensible'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'github_username/plugin_name#branch'
# set -g @plugin '[email protected]:user/plugin'
# set -g @plugin '[email protected]:user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'