-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
72 lines (59 loc) · 2.03 KB
/
Copy pathtmux.conf
File metadata and controls
72 lines (59 loc) · 2.03 KB
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
# tmux.conf - Settings and configuration for tmux
# Replace the window-split bindings.
unbind %
bind v split-window -h -c '#{pane_current_path}'
bind s split-window -v -c '#{pane_current_path}'
# Use a screen-style prefix.
unbind C-b
set-option -g prefix C-a
# Window navigation.
set-option -g base-index 1
set-option -g pane-base-index 1
bind c new-window -c '#{pane_current_path}'
# Don't rename windows automatically.
set-option -g allow-rename off
# Set a key binding to reload this config again.
bind r source-file ~/.tmux.conf \; display "Settings reloaded!"
# Automatically reorganize windows.
bind m move-window -r
# Toggle mouse mode on and off.
bind a set -g mouse \; display "Mouse option #{?mouse,enabled,disabled}."
# Allow Ctrl-a to pass through if you hit it twice.
bind C-a send-prefix
# Set the text for the right side of the status bar.
set-option -g status-right "#(whoami)@#h"
# Colors for windows, panes and messages.
# Solarized Dark
#set-option -wg window-status-fg white
#set-option -wg window-status-bg black
#set-option -wg window-status-current-fg cyan
#set-option -wg window-status-current-bg black
#set-option -g pane-border-fg black
#set-option -g pane-active-border-fg black
#set-option -g message-bg blue
#set-option -g message-fg white
#set-option -wg status-bg black
#set-option -wg status-fg white
# Solarized Light
set-option -wg window-status-fg black
set-option -wg window-status-bg white
set-option -wg window-status-current-fg magenta
set-option -wg window-status-current-bg white
set-option -g pane-border-fg black
set-option -g pane-active-border-fg black
set-option -g message-bg magenta
set-option -g message-fg white
set-option -wg status-bg white
set-option -wg status-fg black
# Use Vim-style settings.
set-window-option -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r C-h resize-pane -L
bind -r C-j resize-pane -D
bind -r C-k resize-pane -U
bind -r C-l resize-pane -R
# Fixes a Mac bug.
set -g default-command "reattach-to-user-namespace -l /bin/zsh"