-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
54 lines (44 loc) · 1.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
set -g default-terminal "xterm-256color"
set -ga terminal-overrides ',xterm-256color:Tc'
set -g history-limit 10000
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and - instead of % and "
unbind '"'
unbind %
bind | split-window -h -c '#{pane_current_path}'
bind - split-window -v -c '#{pane_current_path}'
# Move panes with hjkl
unbind-key h
unbind-key j
unbind-key k
unbind-key l
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Enable mouse control (clickable windows, panes, resizable panes)
set -g mouse on
# loud or quiet?
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-window-option -g monitor-activity off
set-option -g bell-action none
## Status bar design
set -g status-justify centre
set -g status-interval 1
set -g status-position bottom
set -g status-bg black
set -g status-fg blue
set -g status-left '#[bold,bg=blue,fg=black] #{pane_current_path} #[bg=default,fg=default] '
set -g status-right '#[bold] %d/%m #[bold] %H:%M:%S '
set -g status-right-length 50
set -g status-left-length 50
# fzf the contents of the current directory + descendents
# bind-key -n 'C-f' run "tmux split-window -p 40 'tmux send-keys -t #{pane_id} \"$(rg --files #{pane_current_path} | fzf -m | paste -sd\\ -)\"'"