-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
124 lines (100 loc) · 3.83 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
###############################################################################
# tmux common profile
# This tmux configuration profile is intended to correspond to Byobu's
# traditional GNU Screen profile
#
# Copyright (C) 2011 Dustin Kirkland
#
# Authors: Dustin Kirkland <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
###############################################################################
# Must set default-command to $SHELL, in order to not source ~/.profile
# BUG: Should *not* hardcode /bin/bash here
#set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# Set status bar
set -g status-bg colour236
set -g status-fg white
set -g status-left '#[fg=green]#H'
# Highlight active window
# set-window-option -g window-status-current-bg colour164
# Enable focus-events
set-option -g focus-events on
# Enable TrueColor support
set -g default-terminal "screen-256color"
set-option -sa terminal-features ',xterm-256color:RGB'
# Set the command for new windows to "zsh"
set -g default-command /usr/bin/zsh
# Enable mouse
set-window-option -g mouse on
# Vi keys
set-window-option -g mode-keys vi
set-option -g status-keys vi
# Copy selection to clipboard
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -se c -i"
# "I' == current window index
# 'H' == Hostname
# 'F' == current window flag
# 'P' == current pane index
# 'S' == Session name
# 'T' == current window title
# 'W' == current window name
# '#' == a literal "#"
# Where appropriate, special character sequences may be prefixed with a
# number to specify the maximum length, in this line "#10W'.
set-window-option -g window-status-format 'W#IP#P:#F#W'
set-window-option -g automatic-rename on
set-window-option -g aggressive-resize on
setw -g window-status-current-format 'W#IP#P:#F#W'
# sometimes needed.. maybe..
set-window-option -g alternate-screen on
setw -g xterm-keys on
# open a man page in new window
bind / command-prompt "split-window -v 'exec man %%'"
# scrollback buffer n lines
set -g history-limit 5000
# listen for activity on all windows
set -g bell-action any
# enable wm window titles
set -g set-titles on
# wm window title string (uses statusbar variables)
set -g set-titles-string "tmux [@#H] #W"
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
set -g terminal-overrides "xterm*:XT:smcup@:rmcup@"
# default window title colors
set-option -g visual-activity on
set-window-option -g monitor-activity on
# Set the prefix to ^A.
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# C-a a switch to last-window
unbind ^A
bind ^A last-window
set -g status-interval 1
set -s escape-time 0
unbind %
bind / split-window -h
bind - split-window -v
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-k select-pane -U
bind -n M-j select-pane -D
# Turn monior-activity for rtorrent, cmus and irssi *off*
#set-window-option -t:3 monitor-activity off
#set-window-option -t:4 monitor-activity off
#set-window-option -t:9 monitor-activity off
# Set a space-separated string containing a list of envi‐ ronment
# variables to be copied into the session environ‐ ment when a new
# session is created or an existing session is attached
set -g update-environment "DISPLAY WINDOWID SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION GNOME_KEYRING_PID GNOME_KEYRING_SOCKET"