-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.tmux.conf
More file actions
60 lines (56 loc) · 2.51 KB
/
.tmux.conf
File metadata and controls
60 lines (56 loc) · 2.51 KB
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
# inspired by:
# aziz: https://github.com/aziz/dotfiles/blob/master/tmux.conf
# wired: http://dev.gentoo.org/~wired/conf/tmux.conf
# technomancy: https://github.com/technomancy/dotfiles/blob/master/.tmux.conf
# jeffwar: https://github.com/jeffwar/dotfiles/blob/master/.tmux.conf
new-session # Start a new session if none available
# keybinds
set -g prefix ` # use tilde key as prefix
bind ` send-key ` # insert tilde by pressing twice
bind , previous-window
bind . next-window
bind < swap-window -t :-
bind > swap-window -t :+
bind | split-window -h # split into left and right panes
bind \ split-window -h
bind - split-window -v # split into top and bottom panes
bind o rotate-window # rotate panes around in current window
bind Left resize-pane -L 5
bind Right resize-pane -R 5
bind Up resize-pane -U 5
bind Down resize-pane -D 5
bind v select-layout even-horizontal
bind V select-layout main-vertical
bind h select-layout even-vertical
bind H select-layout main-horizontal
bind t select-layout tiled
bind n command-prompt 'rename-window %%'
bind N command-prompt 'rename-session %%'
bind x kill-pane
bind X kill-window
bind r source-file ~/.tmux.conf \; display-message " * reloaded ~/.tmux.conf"
bind w run "~/bin/tmux-copy"
bind y run "~/bin/tmux-paste"
# behavior
set -g base-index 1 # start window numbering from 1 instead of 0
setw -g automatic-rename on # automatically name windows
set -g set-titles on # auto set the terminal's window title
setw -g mode-mouse on # copy with mouse in copy mode
set -g mouse-select-pane on # let mouse switch panes
set -g mouse-resize-pane on
set -g mouse-select-window on
# appearance
set -g default-terminal "screen-256color" # full colors for apps
set -g status-left-length 45
set -g status-left '⣿ #[underscore]#20H#[default]:#[fg=black]#S#[default] ⡇'
set -g status-right ' ⣿ '
setw -g window-status-format ' #I #W ' # window name formatting
setw -g window-status-current-format ' #I #W '
set -g status-bg colour3 # dark yellow status bar
setw -g window-status-bg colour240 # dark grey window name bg
setw -g window-status-fg white
setw -g window-status-current-bg red # red bg for active window
setw -g window-status-current-fg white
setw -g window-status-current-attr bold
setw -g window-status-attr bold
set -g set-titles-string '[#I] #W'