-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
51 lines (41 loc) · 1.28 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
source-file ~/.tmux.statusline.conf
unbind C-b
set -g prefix C-a
setw -g mode-mouse on
setw -g mouse-select-pane on
set -g default-terminal "screen-256color"
set -g history-limit 100000
# reattach zsh to the user namespace so I can use pbcopy, etc
set-option -g default-command "reattach-to-user-namespace -l /usr/bin/env zsh"
# let's unbind some of these defaults because they're dumb
unbind Up
unbind Down
unbind Left
unbind Right
unbind l
# we like vim-style motion binding better i think
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
bind-key J swap-pane -D
bind-key K swap-pane -U
bind-key C-h resize-pane -L 5
bind-key C-j resize-pane -D 5
bind-key C-k resize-pane -U 5
bind-key C-l resize-pane -R 5
unbind [
unbind p
bind Escape copy-mode
bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
# Open a project interactively
unbind C-p
bind-key C-p \
command-prompt -p "client:","project:" "\
new-session -A -c ~/Projects/%1/%2 -s %2 -n code 'reattach-to-user-namespace -l vim'\;\
new-window -d -n console 'touch log/development.log log/test.log && tail -f log/development.log log/test.log'\;\
split-window -v -t 1 'rails c'\;\
split-window -h -t 1\;\
next-window"