-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
71 lines (56 loc) · 2.32 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
set -g prefix C-Space
set -sg escape-time 0
# Try to get close to normal colors in tmux
set -g default-terminal "screen-256color"
# status line
set-option -g status-position top
set -g status-justify left
# status bar refresh-rate in seconds
set -g status-interval 1
# window status
setw -g window-status-format " #W "
setw -g window-status-current-format " #W "
# Info on left (no session display)
set -g status-left ''
set -g status-right-length 150
#set -g status-right " #(bash ~/dotfiles/tmux/scripts/decimal_time.sh) #(bash ~/dotfiles/tmux/scripts/age.sh) "
set -g status-right " #(bash ~/dotfiles/tmux/scripts/decimal_time.sh) #(date --iso-8601) %a %b %d %R " # Fri Jun 19 08:32
# colors
# default statusbar colors
set-option -g status-style fg=white,bg=black # white is actually grey, colour255 is white
# default window title colors
set-window-option -g window-status-style fg=colour246,bg=black # gray
# active window title colors
set-window-option -g window-status-current-style fg=black,bg=white
# pane border
set-option -g pane-border-style fg=black
set-option -g pane-active-border-style fg=brightgreen
# message text
set-option -g message-style fg=black,bg=white
# -----------------------------------------------------------------------------
# Other configs
# -----------------------------------------------------------------------------
set-option -g default-shell $SHELL
set-option -g history-limit 100000
# if you have windows 1 and 2, then close window 1, window 2 becomes window 1
set-option -g renumber-windows on
# vim mode for movement in copy-mode
setw -g mode-keys vi
bind Space copy-mode
bind C-Space copy-mode
# -----------------------------------------------------------------------------
# Use i3 key bindings for navigating. -n means you don't need to use the prefix
# -----------------------------------------------------------------------------
bind -n M-h select-pane -L
bind -n M-t select-pane -D
bind -n M-n select-pane -U
bind -n M-s select-pane -R
bind -n M-C-h split-window -h -b -c '#{pane_current_path}'
bind -n M-C-t split-window -v -c '#{pane_current_path}'
bind -n M-C-n split-window -v -b -c '#{pane_current_path}'
bind -n M-C-s split-window -h -c '#{pane_current_path}'
# make and move between windows
bind -n M-c select-window -n
bind -n M-C-c new-window
bind -n "M-'" kill-pane
bind -n 'M-"' kill-window