-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
38 lines (28 loc) · 877 Bytes
/
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
# set prefix key to ctrl-a
unbind-key C-b
set-option -g prefix C-a
# change shell to zsh
set-option -g default-shell /bin/zsh
# fix pbcopy / pbpaste in tmux
# https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
set-option -g default-command "command -v reattach-to-user-namespace >/dev/null 2>&1 && reattach-to-user-namespace -l zsh || zsh"
# toggle last window like screen
bind-key C-a last-window
setw -g mode-keys vi
# act like vim for selecting panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Use 256 color terminal
set -g default-terminal "screen-256color"
# enable wm window titles
set -g set-titles on
# copy-paste
bind-key [ copy-mode
bind-key ] paste-buffer -s \015
# new window
bind-key C-c new-window
bind-key c new-window
# title (default key in tmux is ',')
bind-key A command-prompt "rename-window %%"