aboutsummaryrefslogtreecommitdiff
path: root/tmux/tmux.conf
blob: a7991d144f68b5902da111fe4ee716cd681e430d (plain)
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
# Escape time
set -sg escape-time 300
set-option -g focus-events on

# Bind leader to [Control-Space]
unbind C-b
set -g prefix C-Space

# Bind [r] to source tmux.conf
unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"

# Activate mouse
set -g mouse on

# Bind h and v to horizontal and vertical split
unbind v    # not bound by default, but may be in a future update
unbind h    # not bound by default, but may be in a future update
unbind %    # Split vertically
unbind '"'  # Split horizontally
bind h split-window -h -c "#{pane_current_path}"
bind v split-window -v -c "#{pane_current_path}"

# Bind x to kill pane without confirmation
unbind x 
bind-key x kill-pane # rebind to 'kill pane' to remove confirmation prompt

# bind t to toggle status bar
unbind t
bind t set-option status

# Set Command History to 100000
set -g history-limit 100000

# Terminal name
set -g default-terminal "screen-256color"

# Status Bar config
set-option -g status-interval 1 
set-option -g status-style fg=yellow,bright,bg=default
set-option -g status-left-length 20
set-option -g status-left ""
set-option -g status-right ""

# Copy into system clipboard
set -s copy-command 'xclip -in -selection clipboard'
set -s set-clipboard off