forked from 0xtobit/.files
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
84 lines (66 loc) · 1.99 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
# Set the prefix to ^A
unbind C-b
set -g prefix ^A
# screen ^C c
unbind ^C
bind ^C new-window
bind c new-window
#detach ^D d
unbind ^D
bind ^D detach
unbind p
bind p previous-window
# windows ^W w
unbind ^W
bind ^W list-windows
unbind w
bind w list-windows
#redisplay ^L l
unbind ^L
bind ^L refresh-client
# split windows like vim
bind s split-window -v
bind v split-window -h
# move around panes with hjkl
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
unbind l
bind l select-pane -R
# zoom a pane into a new window for temporary work
unbind +
bind + new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \; swap-pane -s tmux-zoom.0 \; select-window -t tmux-zoom
unbind -
bind - last-window \; swap-pane -s tmux-zoom.0 \; kill-window -t tmux-zoom
#activate mouse
#pre tmux 2.1 options
#set -g mouse-select-window on
#set -g mouse-select-pane on
#set -g mouse-resize-pane on
#setw -g mode-mouse copy-mode
set-option -g -q mouse on
# vi-style controls for copy-mode
setw -g mode-keys vi
setw -g xterm-keys on
# misc window options
set -g alternate-screen on # when you exit less and vim, you no longer see the buffer
setw -g utf8 on
setw -g clock-mode-style 24
set-option -g default-terminal screen-256color
# colours and status bar. colour is one of black, red, green, yellow, blue,
# magenta, cyan, white, colour0 to colour255 or default
set -g pane-border-bg black
set -g pane-border-fg black
set -g pane-active-border-fg black
set -g pane-active-border-fg colour136
set -g message-fg colour106
set -g message-bg black
set -g status-interval 1
set -g status-bg colour32
set -g status-utf8 on
set -g status-left "#[bold, fg=colour19]#S#[default, fg=colour240]@#[bold, fg=colour19]#H"
set -g status-left-length 100
set -g status-right " #[bold, fg=colour160, bg=colour231] %H:%M:%S #[bold, fg=colour124]%a %e %b %Y"
set -g status-justify right
setw -g window-status-format "#[fg=colour239]#W:#I.#P"
setw -g window-status-current-format "#[bold, underscore, bg=colour234, fg=colour32] #W-#I.#P "