-
Notifications
You must be signed in to change notification settings - Fork 0
/
_tmux.conf
81 lines (62 loc) · 1.96 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
72
73
74
75
76
77
78
79
80
81
#Copy/paste trick
set-option -g default-command "sh ~/.tmux/tmux_default_command.sh"
# use vi mode
setw -g mode-keys vi
# remap prefix to Control + a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
# quick pane cycling with Ctrl-a
unbind ^A
bind ^A select-pane -t :.+
# move around panes like in vim (only in tmux 1.6)
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind h select-pane -L
# splits
unbind %
bind | split-window -h
bind - split-window -v
# Resize panes
unbind M-Up
unbind M-Down
bind C-k resize-pane -U 5
bind C-j resize-pane -D 5
bind C-h resize-pane -L 5
bind C-l resize-pane -R 5
# Monitor activity.
setw -g monitor-activity on
set -g visual-activity on
# Start counting from 1
set -g base-index 1
set -g pane-base-index 1
# Sane scrolling
set -g mouse off
# You might uncomment the lines below to have a different behavior
#set -g mouse off
#set -g mouse select-pane on
#set -g mouse resize-pane on
#set -g mouse select-window on
set -g default-terminal "screen-256color"
set -g allow-rename no
#Powerline-line statusline
set -g status-left-length 32
set -g status-right-length 150
set -g status-fg white
set -g status-bg colour234
set -g window-status-activity-style bold
set -g pane-border-style fg=colour245
set -g pane-active-border-style fg=colour39
set -g message-style fg=colour16
set -g message-style bg=colour221
set -g message-style bold
#set -g status-left '#[fg=colour235,bg=colour252,bold] ❐ #S #[fg=colour252,bg=colour234,bold]⮀'
#set -g window-status-format "#[fg=white,bg=colour234] #I #W "
#set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=colour25,bg=colour39,noreverse,bold] #I ⮁ #W #[fg=colour39,bg=colour234,nobold]⮀"
#set -g status-right '#[fg=white]#(hostname)@#(host `hostname` | cut -d " " -f 4)'
# Adjust this path to where powerline.conf is in your OS
source "/usr/share/powerline/bindings/tmux/powerline.conf"