-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
47 lines (38 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
set -g default-terminal 'screen-256color'
set -g base-index 1
set -g renumber-windows on
set -g status-bg '#666666'
set -g status-fg '#aaaaaa'
set -g status-left ''
set -g status-right ''
set -g history-limit 10000
setw -g aggressive-resize on
set -s escape-time 0
set -g set-titles on
set -g set-titles-string '[#S:#I #H] #W'
setw -g mode-mouse on
set -g terminal-overrides 'xterm-256color:smcup@:rmcup@'
set -wg allow-rename off
bind-key s break-pane
bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'"
bind-key r command-prompt -I "#W" "rename-window '%%'"
bind-key '"' split-window -c '#{pane_current_path}'
bind-key % split-window -h -c '#{pane_current_path}'
if-shell "test -d /Users/josh/Documents/code/gh" "bind-key c new-window -c '/Users/josh/Documents/code/gh'"
if-shell "! test -d /Users/josh/Documents/code/gh" "bind-key c new-window"
bind-key = choose-window
bind-key b set -g status off
bind-key B set -g status on
bind-key m command-prompt -p "swap with:" "swap-window -t %%"
bind-key Up select-pane -U
bind-key Down select-pane -D
bind-key Left select-pane -L
bind-key Right select-pane -R
bind-key S source ~/.dotfiles/tmux/screensaver.conf
# Tmuxline
if-shell "test -f ~/.dotfiles/.tmuxline.tmux.conf" "source ~/.dotfiles/.tmuxline.tmux.conf"
# Useful links:
# http://justinlilly.com/dotfiles/tmux.html
# https://mutelight.org/practical-tmux
# http://superuser.com/questions/210125/scroll-shell-output-with-mouse-in-tmux
# http://me.veekun.com/blog/2012/03/21/tmux-is-sweet-as-heck/