-
Notifications
You must be signed in to change notification settings - Fork 2
/
.tmux.conf
77 lines (57 loc) · 2.08 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
# set Zsh as your default Tmux shell
set -g default-shell /bin/zsh
set -g default-command /bin/zsh
# Tmux should be pretty, we need 256 color for that
set -g default-terminal "xterm-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"
# Allow nested instances
bind-key a send-prefix
# command delay? We don't want that, make it short
set -sg escape-time 1
# Set the numbering of windows to go from 1 instead
# of 0 - silly programmers :|
set -g base-index 1
setw -g pane-base-index 1
# Allow us to reload our Tmux configuration while
# using Tmux
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Sane copy pasting
set set-clipboard external
# bind -T copy-mode C-c send -X copy-pipe-and-cancel "xsel -i --clipboard"
# bind -T copy-mode-vi C-c send -X copy-pipe-and-c-clearancel "xsel -i --clipboard"
# shift-c to open a new window in the current path.
bind C new-window -c '#{pane_current_path}'
#Allow us to use the mouse
set -g mouse on
#Set history limit
set -g history-limit 10000
# RESIZE Using shift and arrow keys
bind -r S-Left resize-pane -L 10
bind -r S-Down resize-pane -D 10
bind -r S-Up resize-pane -U 10
bind -r S-Right resize-pane -R 10
# MOVE Using HJKL to move between panes
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R
# From seebi/tmux-colors-solarized
#### COLOUR (Solarized dark)
# default statusbar colors
set-option -g status-style bg=black,fg=yellow
# default window title colors
set-window-option -g window-status-style fg=brightblue,bg=default
# active window title colors
set-window-option -g window-status-current-style fg=brightred,bg=default
# pane border
set-option -g pane-border-style fg=black #base02
set-option -g pane-active-border-style fg=brightgreen #base01
# message text
set-option -g message-style fg=brightred,bg=black
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# clock
set-window-option -g clock-mode-colour green #green
# bell
set-window-option -g window-status-bell-style fg=black,bg=red #base02, red