-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
71 lines (55 loc) · 1.88 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
65
66
67
68
69
70
71
# use /bin/zsh
set -g default-command /bin/zsh
# Use mouse in terminal
set-option -g mouse on
# Faster key repetition
set -sg escape-time 0
# Monitor activity
setw -g monitor-activity on
# set window and pane index to 1 (0 by default)
set-option -g base-index 1
setw -g pane-base-index 1
# larger history
set -g history-limit 1000000
# limit amount of text printed to console at any time
# this prevents tmux from freezing when programs inside tmux print lots of output
#setw -g c0-change-trigger 10 # don't work anymore
#setw -g c0-change-interval 250
# OS X clipboard integration
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy"
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
# 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 -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# change enter copy-mode keybind
bind v copy-mode
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# switch panes using Alt-arrow without prefix (+Vim-style)
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# No delay for escape key press
set -sg escape-time 0
# THEME
set -g status-bg black
set -g status-fg white
set -g window-status-current-bg black
set -g window-status-current-fg default
set -g window-status-current-attr bold
set -g status-left-length 30
set -g status-left '#[fg=green]#(whoami): '
set -g status-right '#[fg=green]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=white]%H:%M#[default]'
# check if tmuxline is present, and then override the theme
if-shell "test -f ~/.tmuxline" "source ~/.tmuxline"