-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_tmux.conf
88 lines (70 loc) · 2.62 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
set -g mouse on
# set -g @yank_with_mouse on
set-option -g default-shell /bin/zsh
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "clip.exe"
bind-key -T copy-mode y send-keys -X copy-pipe-and-cancel "clip.exe"
# set -s set-clipboard on
# Source file tmux
bind r source-file ~/.tmux.conf
# Vim style pane selection
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Start windows and panes at 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
set -sg escape-time 0
# Reload tmux configuration
bind-key C-r source-file ~/.tmux.conf \; display "Config reloaded"
# use fzf to [s]witch sessions
bind-key C-s display-popup -E "\
tmux list-sessions -F '#{?session_attached,,#{session_name}}' |\
sed '/^$/d' |\
fzf --reverse --header jump-to-session |\
xargs tmux switch-client -t"
# use fzf to [e]xit (kill) sessions
bind-key C-e display-popup -E "\
tmux list-sessions -F '#{?session_attached,,#{session_name}}' |\
sed '/^$/d' |\
fzf --reverse --header kill-session |\
xargs tmux kill-session -t"
bind-key -r i display-popup -E "\
tmuxinator list |\
tail -n +2 |\
xargs -n1 |\
fzf --reverse --header select-tmuxinator-session |\
xargs tmuxinator start
"
# Set 256 colors
set -g default-terminal "screen-256color"
set -s default-terminal 'tmux-256color'
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'catppuccin/tmux'
set -g @catppuccin_window_right_separator "█ "
set -g @catppuccin_window_number_position "right"
set -g @catppuccin_window_middle_separator " | "
set -g @catppuccin_window_current_text "#{pane_current_path}"
set -g @catppuccin_window_default_fill "none"
set -g @catppuccin_window_current_fill "all"
set -g @catppuccin_status_modules_right "application date_time"
set -g @catppuccin_status_modules_left "session"
set -g @catppuccin_status_left_separator "█"
set -g @catppuccin_status_right_separator "█ "
set -g @catppuccin_date_time_text "%Y-%m-%d %H:%M:%S"
set -g @catppuccin_status_connect_separator "yes"
set -g @yank_with_mouse on
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# forget the find window. That is for chumps
bind-key -r f run-shell "tmux neww ~/.local/bin/tmux-sessionizer"
# bind-key -r i run-shell "tmux neww ~/.local/bin/tmux-cht"
bind-key -r S run-shell "~/.local/bin/tmux-sessionizer ~/personal/guestbook"
run '~/.tmux/plugins/tpm/tpm'