-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
146 lines (108 loc) · 3.92 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# _ __
# | |_ _ __ ___ _ ___ __ ___ ___ _ __ / _|
# | __| '_ ` _ \| | | \ \/ / / __/ _ \| '_ \| |_
# | |_| | | | | | |_| |> < | (_| (_) | | | | _|
# (_)__|_| |_| |_|\__,_/_/\_(_)___\___/|_| |_|_|
#
# Change default Keys Ctrl+b to Ctrl+a as Screen, handy
#set -g prefix C-a
set-option -g prefix C-a
unbind-key C-b
# `+r Reloads the Configuration, handy
bind r source-file ~/.tmux.conf
# use vi shit
set-window-option -g mode-keys vi
# don't make vim esc take so fucking long
set -sg escape-time 0
# Starts Window numbering from 1
set -g base-index 1
# paste-buffer
bind-key -n F2 paste-buffer
# Scrollback Buffer n Lines
set -g history-limit 100000
# focus events enabled for terminals that support them
set -g focus-events on
# super useful when using "grouped sessions" and multi-monitor setup
#setw -g aggressive-resize on
# refresh 'status-left' and 'status-right' more often
set -g status-interval 5
# tmux messages are displayed for 4 seconds
set -g display-time 4000
# Allows the smcup and rmcup terminfo(5) capabilities
#set-window-option -g alternate-screen on
set-window-option -g alternate-screen off
#set-option -g default-terminal "linux"
#set-option -g default-terminal "screen-256color"
#set-option -g default-terminal "screen"
set-option -g default-terminal "screen-256color"
#set-option -g default-terminal "xterm"
#set-option -g default-terminal "xterm-256color"
# XTerm keys
#setw -g xterm-keys on
#set-window-option -g xterm-keys on
set-option -gw xterm-keys on
# Monitor Activity and Notifying if other windows has activities
setw -g monitor-activity on
set -g visual-activity on
#set -g visual-bell on
# Set action on window bell
set -g bell-action any
#set -g bell-action current
# Open a man Page
bind-key / command-prompt "split-window 'exec man %%'"
# http://gist.github.com/jeffwar/dotfiles/blob/master/.tmux.conf
bind-key M command-prompt -p "man Page for:" "new-window 'man %% || read'"
# Kill Window k
unbind k
bind k confirm-before "kill-window"
# Rename Window A
unbind A
bind A command-prompt "rename-window %%"
# Change window like Screen, l is default
bind-key C-a last-window
# F11 and F12 cycles throught Windows
bind-key -n F11 prev
bind-key -n F12 next
# Ctrl+PageUP and Ctrl+PageDown throught Windows
bind-key -n C-NPage next-window
bind-key -n C-PPage previous-window
# --------------------------------------------------------------------------------------------------
# Titles and Statusbar
# Titles
set-option -g set-titles on
set-option -g set-titles-string '#S.#I.#P #W #T #H' # window number, program name,active (or not), host
#set-option -g set-titles-string '#S.#I.#P #W #T' # window number, program name,active (or not), host
set-window-option -g automatic-rename on
# For ssh
#setw -g window-status-format "#I:#(hostname -s)"
#setw -g window-status-current-format "#I:#(hostname -s)"
# Toggle Statusbar
bind-key b set-option status
# on-screen time for display-panes in ms
set -g display-panes-time 2000
set -g display-time 2000
# default statusbar colors
set -g status-fg white
set -g status-bg black
set -g status-attr default
# default window title colors
#set-window-option -g window-status-fg cyan
set-window-option -g window-status-fg white
set-window-option -g window-status-bg black
set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg black
set-window-option -g window-status-current-bg yellow
set-window-option -g window-status-current-attr bright
set-option -g message-fg black
set-option -g message-bg magenta
set -g message-attr bright
# Center align the Window List
set -g status-justify centre
#set -g status-justify left
# Status left
set -g status-left-length 50
set -g status-left '#[fg=magenta,bold][#H:#S]#[default]'
#set -g status-left ' #[fg=green,bold]#H#[default]'
# Status right
set -g status-right '#[fg=blue,bold]%A %d.%m.%Y#[default] #[fg=white]%H:%M#[default]'