-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
58 lines (48 loc) · 1.63 KB
/
.tmux.conf
File metadata and controls
58 lines (48 loc) · 1.63 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
# Basic settings
set -g prefix C-t
set -g history-limit 1000000
set -g default-terminal screen-256color
set -g mouse on
set -g allow-passthrough on
set -g base-index 1
bind r source-file ~/.tmux.conf \; display-message "tmux config reloaded"
# Terminal window title
set -g set-titles on
set -g set-titles-string "#{?#{==:#{pane_current_path},$HOME},~,#{b:pane_current_path}}"
# Session and window selection
bind S choose-tree -s
# Split windows like Vim
bind s split-window -v
bind v split-window -h
# Move around panes with Vim-style hjkl
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resize panes like Vim
bind -r < resize-pane -L 1
bind -r > resize-pane -R 1
bind -r - resize-pane -D 1
bind -r + resize-pane -U 1
# Vi-style controls for copy mode
setw -g mode-keys vi
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-selection
set -g set-clipboard on
# Status line configuration
set -g status-style "bg=colour235,fg=colour245"
set -g status-interval 1
set -g status-left-length 30
set -g status-left "#[fg=bold] ❐ #S│"
set -g status-right ""
set -g window-status-format " #I: #W "
set -g window-status-current-format " #I: #W "
set -g window-status-current-style "bg=black,fg=cyan,bold"
set -g window-status-bell-style "bg=colour235,fg=yellow"
# Automatic rename based on current path or window name
set -g automatic-rename on
set -g automatic-rename-format "#{?#{==:#{pane_current_command},zsh},#{?#{==:#{pane_current_path},$HOME}, ~, #{b:pane_current_path}},#{pane_current_command}}"
# Bell
setw -g monitor-bell on
set -g bell-action any
set -g visual-bell off