-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
93 lines (70 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
86
87
88
89
90
91
92
93
# Tmux Config
#
# Home Page : http://tmux.sourceforge.net
# some help
# http://www.linuxized.com/2010/05/switching-from-gnu-screen-to-tmux/
# http://blog.hawkhost.com/2010/07/02/tmux-–-the-terminal-multiplexer-part-2/#modifying-tab-color
# Note : Ctrl b for prefix, I've cursed too much on "ctrl a" to fall back for it
bind C-b last-window # bind "last-window" , ie C-b twice cycle through last used windows
# easy to remember split keys
unbind %
bind | split-window -h
unbind '"'
bind - split-window -v
unbind q
bind q confirm-before kill-window
# set window notifications
setw -g monitor-activity on
set -g visual-activity off
# automatic window rename, force name with C-,
setw -g automatic-rename on
# shift+left/right cycles thru windows
unbind -n S-left
unbind -n S-right
bind -n S-left prev
bind -n S-right next
# safe defaults
#set-option -g default-terminal screen-256color
set -g default-command bash
# start counting windows at 0
# (0 in screen - pane index seems to starts at 0 anyway)
set -g base-index 0
setw -g mode-keys vi
set-option -g status-keys vi
set -g history-limit 4096
# Variables shortcut
#
# Character pair Replaced with
#--------------------------------
#(shell-command) First line of the command's output
#[attributes] Colour or attribute change
#H Hostname of local host
#F Current window flag
#I Current window index
#P Current pane index
#S Session name
#T Current window title
#W Current window name
## A literal '#'
set-option -g set-titles on
# Session Name, window number.Pane number, program name
set-option -g set-titles-string '#S - #I.#P #W'
set -g status-interval 5
set -g status-fg black
set -g status-bg white
setw -g window-status-attr dim
setw -g window-status-current-fg blue
setw -g window-status-current-attr "bright underscore"
# Requ tmux > 1.1
#setw -g window-status-alert-attr italics
set -g status-left-length 20
set -g status-left '#[fg=black][ #[fg=red]#S #H #[fg=black]] [#[default]'
set -g status-right '#[fg=black]][ #[fg=blue]%H:%M - %d/%m/%Y#[fg=black] ]#[default]'
# Clock
setw -g clock-mode-colour blue
setw -g clock-mode-style 24
unbind t
bind t clock
# ^r reloads the configuration
bind r source-file ~/.tmux.conf
# vim: set ft=bash: