-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
76 lines (66 loc) · 3.4 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
set -sg escape-time 50
# Fix colors
#set -g default-terminal "xterm-256color"
set -g default-terminal "xterm-256color-italic"
# Allow mouse scrolling/navigation
set -g mouse on
# Set emacs status-keys (instead of vi).
# I prefer this (for now) because it is more similar to how I interact with the bash command line.
# It's nice to use C-p and C-n to scroll through command history instead of pressing Esc!
set -g status-keys emacs
# Custom keybinds
# Reload config with r
bind r source-file ~/.tmux.conf
# Better keybinds for opening panes, plus open in current directory
bind c new-window -c "#{pane_current_path}"
bind | split-window -h -p40 -c "#{pane_current_path}"
bind \\ split-window -h -p50 -c "#{pane_current_path}"
bind - split-window -v -p40 -c "#{pane_current_path}"
unbind %
unbind '"'
# Faster pane select
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
# Pressing C-b twice will free you to keep sending the prefix repeatedly until you pause for about a second
bind -r C-b send-prefix
# Send command to last pane in window. Tip: enter "!!" in order to redo previous command.
#bind R command-prompt -p "Command to run:" 'send-keys -t {right} C-l C-a C-k "%1" Enter'
# Send previous command to last pane in window.
#bind P send-keys -t right C-l C-a C-k "!!" Enter
# Send make command to last pane in window.
#bind M send-keys -t right C-l C-a C-k "make" Enter
# Three-pane programming setup
#bind T split-window -h -p45 -c "#{pane_current_path}" \; split-window -v -p40 \; send-keys 'cd $(tmux display-message -p -t0 -F "#{pane_current_path}")' \; send-keys 'C-m' 'C-l'
# Customize pane border
set -g pane-border-style fg=white
set -g pane-active-border-style bg=default,fg=brightWhite
# Customize status line
set-option -g status on
set-option -g status-interval 1 # Necessary for clock to count seconds properly.
#set-option -g status-justify centre
#set-option -g status-keys vi
set-option -g status-position top
set-option -g status-style fg=colour8,bg=default
set-option -g status-left-style fg=colour8,bg=default
set-option -g status-right-style fg=colour8,bg=default
set-option -g status-right "#[fg=colour8]#(whoami)@#h"
set-option -ag status-right " #[fg=colour8]%a %h %d #[fg=brightWhite,bold]%H:%M #[fg=colour8,default]%Z"
#set-option -g status-left-length 20
#set-option -g status-left-style default
#set-option -g status-left "" #"#[fg=green]#H #[fg=black]• #[fg=green,bright]#(uname -r)#[default]"
set-option -g status-right-length 140
#set-option -g status-right-style default
set-option -ag status-right " #[fg=colour8]#(uptime | cut -d' ' -f3- | cut -d',' -f1 | tr -s \" \")"
#set-option -ag status-right " #[fg=yellow]#(memusage)"
set-option -ag status-right " #[fg=brightWhite,bold]#(ioreg -l -w0 | grep CurrentCapacity | head -1 | cut -d'=' -f2 | tr -d ' ')"
#set-option -ag status-right " #[fg=green]#(tmux-mem-cpu-load)"
#set-option -ag status-right " #[fg=white,bg=default]%a%l:%M:%S %p#[default] #[fg=blue]%Y-%m-%d"
#set-window-option -g window-status-style fg=colour244
#set-window-option -g window-status-style bg=default
set-window-option -g window-status-current-style fg=brightWhite,bold #fg=colour166,bold
set-window-option -g window-status-current-format "#I:#W"
set-window-option -g window-status-format "#I:#W"
set-window-option -g window-status-last-style fg=default,italics #fg=colour166,bold
#set-window-option -g window-status-current-style bg=default