aboutsummaryrefslogtreecommitdiff
path: root/tmux.config
blob: dd3d49cb2560fa95228b3b1ca4894b4afee813ac (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
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
82
83
84
85
86
87
88
89
90
91
92
93
# Use Ctrl A instead of Ctrl b
#unbind C-b
#set -g prefix C-x

# Resize pane single keys
bind-key + resize-pane -D 20
bind-key - resize-pane -U 20
bind-key / resize-pane -L 20
bind-key * resize-pane -R 20

# Vim movements
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

# Kill without prompting
bind-key x kill-pane
bind-key & kill-window

# Help with the color problems
set -g default-terminal "screen-256color"

# Mouse Scrolling
set-option -g mouse on

#Use vim keybindings in copy mode
setw -g mode-keys vi

# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"

# Update default binding of `Enter` to also use copy-pipe
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"

# Set the display panes timeout
set-option -g display-panes-time 4000

# Change binding for display panes
bind-key b display-panes

# Allow pbcopy inside of session
set-option -g default-command "reattach-to-user-namespace -l zsh"



#### COLOUR (Solarized dark)

## default statusbar colors
set-option -g status-bg colour66 #base02
set-option -g status-fg colour229 #yellow
#set-option -g status-attr default

## default window title colors
#set-window-option -g window-status-fg colour20 #base0
#set-window-option -g window-status-bg default
##set-window-option -g window-status-attr dim

## active window title colors
#set-window-option -g window-status-current-fg colour44 #orange
#set-window-option -g window-status-current-bg default
##set-window-option -g window-status-current-attr bright

## pane border
##set-option -g pane-border-fg colour235 #base02
##set-option -g pane-active-border-fg colour46 #base01
set-option -g pane-border-fg colour23 #base02
set-option -g pane-active-border-fg colour23 #base01


## message text
set-option -g message-bg colour235 #base02
set-option -g message-fg colour196 #orange

## pane number display
#set-option -g display-panes-active-colour colour160 #blue
#set-option -g display-panes-colour colour15 #orange

## clock
#set-window-option -g clock-mode-colour colour40 #green

set-option -g status on
set-option -g status-interval 2
set-option -g status-justify "centre"
set-option -g status-left-length 110
set-option -g status-right-length 90
set-option -g status-left "#(~/.tmux/powerline.sh left)"
set-option -g status-right "#(~/.tmux/powerline.sh right)"

# Make the escape faster
set -s escape-time 0