-
Notifications
You must be signed in to change notification settings - Fork 2
/
.tmux.conf
executable file
·85 lines (64 loc) · 2.33 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
82
83
84
85
set -g base-index 1
# act like vim
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
# use better mnemonics for horizontal/vertical splits
bind-key - split-window -v
bind-key _ split-window -v
bind-key | split-window -h
# act like GNU screen
unbind C-b
set -g prefix C-a
# scrollback buffer n lines
set -g history-limit 5000
# look good
set -g default-terminal "screen-256color"
# copying and pasting
bind-key [ copy-mode
bind-key ] paste-buffer -s \015
# vi-style controls for copy mode
setw -g mode-keys vi
# enable mouse
setw -g mode-mouse on
setw -g mouse-select-window on
setw -g mouse-select-pane on
# list all paste buffers (default key is '#')
bind-key b list-buffers
# choose buffer to paste interactively (default key was '=')
bind-key p choose-buffer
# pane movement
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
# default statusbar colors
set -g status-fg black
set -g status-bg default
# default window title colors
#set-window-option -g window-status-fg black
set-window-option -g window-status-fg cyan
set-window-option -g window-status-bg default
set-window-option -g window-status-attr bright
# active window title colors
set-window-option -g window-status-current-fg white
set-window-option -g window-status-current-bg green
set-window-option -g window-status-current-attr dim
# statusline
# Powerline symbols: ⮂ ⮃ ⮀ ⮁ ⭤
set -g status-left-length 32
set -g status-right-length 150
set -g status-interval 5
set -g status-left '#[fg=colour16,bg=colour1,bold] ❒ #S #[fg=colour1,bg=colour0,nobold]⮀'
set -g status-right '#[fg=colour245]⮃ %R ⮃ %d %b #(music.tmux)#(ip.tmux en0) #(gmail.tmux)#[fg=colour254,bg=colour0,nobold] ⮂#[fg=colour16,bg=colour254,bold] #h '
set -g window-status-format "#[fg=colour7,bg=colour0,nobold] #I #[bold]#W "
set -g window-status-current-format "#[fg=colour0,bg=colour2]⮀#[fg=colour16,bg=colour2,noreverse,bold] #I ⮁ #W #[fg=colour2,bg=colour0,nobold]⮀"
# pbcopy os x hack
set-option -g default-command "reattach-to-user-namespace -l bash"
bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
set -s escape-time 0
# tmux >= 1.7
set-option -g status-position top
# set-option -g renumber-windows on
bind m run "ncmpcpp toggle"