-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
64 lines (47 loc) · 1.42 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
# Pretty colors
set -g default-terminal "screen-256color"
# Vim keybindings
setw -g mode-keys vi
# Decrease command delay (for Vim responsiveness)
set -sg escape-time 1
# Start windows index at 1 instead of 0
set -g base-index 1
# Start pane index at 1
set -g pane-base-index 1
# Renumber windows after close
set -g renumber-windows on
# Tmux prefix
unbind C-b
set -g prefix C-s
# Panes splitting
unbind %
bind \\ split-window -h -c "#{pane_current_path}"
unbind '"'
bind - split-window -v -c "#{pane_current_path}"
# Panes movement without prefix
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# bind C-l send-keys 'C-l'
bind c new-window -c "#{pane_current_path}"
# Resizing panes shortcuts
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r H resize-pane -L 5
bind -r L resize-pane -R 5
# Nice border colors for panes
# set -g pane-border-fg white
# set -g pane-active-border-fg cyan
# set -g pane-active-border-bg cyan
# Enable UTF-8 support in status bar
# set -g status-utf8 on
# Set refresh interval for status bar
set -g status-interval 10
# Show hostname, date, time, and battery in right status bar
set -g status-right " #(date '+%a, %b %d - %I:%M') "
setw -g automatic-rename-format "#{b:pane_current_path}"
# Reload config file
bind r source-file ~/.tmux.conf
# Fix all the user namespace problems (yank, etc)
set-option -g default-command "reattach-to-user-namespace -l zsh"