-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf.spacegray
77 lines (66 loc) · 2.55 KB
/
.tmux.conf.spacegray
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
# Needed for pbcopy / pbpaste
set-option -g default-command "reattach-to-user-namespace -l $SHELL"
# Need to set $TERM for vim colors to work
set -g default-terminal "screen-256color-italic"
#set -g default-terminal "screen-256color"
# remap prefix to Control + a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# Statusbar
set -g status-interval 1
set -g status-justify right # center align window list
set -g status-position bottom
set -g status-left ''
set -g status-right ''
#set -g status-left '#[fg=brightwhite] #S - #(pwd) #[fg=brightgreen] #(wemux status_users)'
set -g status-left-length 100
# default statusbar colors
set -g status-fg default
set -g status-bg brightcyan
set -g status-attr dim
# default window title colors
set-window-option -g window-status-fg black
set-window-option -g window-status-bg default
set-window-option -g window-status-attr bright
# active window title colors
set-window-option -g window-status-current-fg white
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr dim
# Set pane divider colors
set -g pane-border-bg default
set -g pane-border-fg white
set -g pane-active-border-bg default
set -g pane-active-border-fg white
# window formats
set -g window-status-format " #W "
set -g window-status-fg black
set -g window-status-current-format " #W "
set -g window-status-current-fg white
set-window-option -g window-status-separator ""
# this must be some glitch in tmux 1.8, bg and fg are swapped
set -g window-status-activity-bg blue
set -g window-status-activity-fg brightcyan
set -g window-status-bell-bg blue
set -g window-status-bell-fg brightcyan
set -g window-status-content-bg blue
set -g window-status-content-fg brightcyan
# start windows at 1
set -g base-index 1
set-window-option -g automatic-rename off
# pane switching
unbind ^B
bind ^B select-pane -t :.+
# Update the status bar with CWD and git info by running a shell script
# Requires Thomas Adam's hook patch for tmux
# https://github.com/ThomasAdam/tmux/tree/ta/hooks
#set-hook -g -n 'after-select-window' 'run "cd `tmux show-environment TMUXPWD_#I | sed \"s/^.*=//\"`; tmux_set_status.sh"'
#set-hook -g -n 'after-select-window' 'run "tmux set -q status-left \" `tmux show-environment TMUX_STATUS_#S_#I | cut -d \" \" -f 2-`\""'
set-hook -g -n 'after-select-window' 'run "tmux set -q status-left \" $(tmux show-environment TMUX_STATUS_#S_#I | cut -d \" \" -f 2-)\""'
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
# enable mouse
set -g mode-mouse off
set -g mouse-select-pane off
set -g mouse-resize-pane off