-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
50 lines (39 loc) · 1.5 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
# 10_bindings
# act like GNU screen
unbind C-b
set -g prefix C-a
bind-key C-a last-window
bind-key a send-prefix
# Reload key
bind r source-file ~/.tmux.conf
set-window-option -g mode-keys vi
set-option -g mouse on
# 10_shell.sh
set-option -g default-shell /usr/local/bin/zsh
set-option -g default-command "reattach-to-user-namespace -l /usr/local/bin/zsh"
# 10_terminal.sh
set -g default-terminal "screen-256color"
# 15_window_order
# start window numbers at 1 to match keyboard order with tmux window order
set -g base-index 1
set-window-option -g pane-base-index 1
# renumber windows sequentially after closing any of them
set -g renumber-windows on
# 20_pbcopy.sh
bind y run-shell "reattach-to-user-namespace -l zsh -c 'tmux show-buffer | pbcopy'"
# 50_envvars
# http://superuser.com/questions/237822/how-can-i-get-ssh-agent-working-over-ssh-and-in-tmux-on-os-x
set -g update-environment "SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION"
# 50_theme
set -g status-bg colour234
set -g status-fg colour248
set -g status-interval 3
set -g status-left-length 30
set -wg window-status-format ' #I-#W '
set -wg window-status-current-format '#[fg=white][#[default]#I-#W#[fg=white]]#[default]'
set -g status-right-length 50
# 90_other
set-option -g history-limit 4096
set -g visual-bell off
set -g status-left '#[fg=colour32]#(whoami)@#H#[default]'
set -g status-right '#[fg=red]#(osx-cpu-temp) #[fg=cyan]#(battery-status.sh 10) #[fg=yellow]#(uptime | grep -oE "[0-9\., ]+$" | tr -d ",") #[fg=white]%H:%M:%S#[default]'