-
Notifications
You must be signed in to change notification settings - Fork 15
/
tmux.conf
62 lines (48 loc) · 1.63 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
# Set prefix to Ctrl-Space
unbind C-b
set -g prefix C-Space
bind Space send-prefix
# Use vi keys
set -gw mode-keys vi
# Update window title
set -g set-titles on
set -g set-titles-string '#T - #I:#W'
# Mouse support
set -g mouse on
# 256 color support
set -g default-terminal "screen-256color"
# Show activity in background windows
setw -g monitor-activity on
# Start window numbers from 1
set -g base-index 1
# Key bindings
bind C-d detach # the same as d so you don't have to depress Ctrl
bind r source-file ~/.tmux.conf \; display-message "Configuration reloaded."
bind C-Space last-window
bind C-c command-prompt -p command: "new-window -n '%1' '%1'"
# Pane movement
# http://unix.stackexchange.com/questions/14300/tmux-move-window-to-pane
bind-key j command-prompt -p "join pane from window:" "join-pane -s '%%'"
bind-key s command-prompt -p "send pane to window:" "join-pane -t '%%'"
# Message bar
set -g message-style bright,bg=black,fg=blue
#set -g message-attr bright
#set -g message-bg black
#set -g message-fg blue
set -g display-time 2000
set -g display-panes-time 2000
# Window mode bar
#setw -g mode-bg white
#setw -g mode-fg black
setw -g mode-style fg=black,bg=white
# Status bar
set -g status-bg black
set -g status-fg white
set -g status-interval 10
set -g status-left-length 50
set -g status-left '#[fg=green][#I:#P #W] #(whoami)@#(hostname -s) '
set -g status-right "{#[bold,fg=cyan]#(uptime | awk -F: '{print $(NF)}' | sed s/' '//)#[nobold,fg=default]} {#[bold,fg=cyan]%a %m/%d %H:%M%p#[nobold,fg=default]}"
# Terminal title bar
set -g set-titles-string "#I:#P - #W - #T"
# Site-specific config
source-file ~/.tmux.conf.local