-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
50 lines (35 loc) · 1.09 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
# Designed for remote servers not local developemnt
# Change the prefix from C-b
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# https://unix.stackexchange.com/a/35932/12683
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# Enable focus
set-option -g focus-events on
# More scrollback
set-option -g history-limit 50000
# Vim style pane selection
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Vim style yank and selection in tmux
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
# Renaming
setw -g automatic-rename on
# Renumbering
set -g renumber-windows on
# Splitting like iTerm
bind v split-window -h -c '#{pane_current_path}'
bind s split-window -v -c '#{pane_current_path}'
setw -g mode-keys vi
set -g default-terminal "tmux-256color"
set-option -g default-shell "/usr/bin/zsh"
set -g mouse on
# "Refresh" the environent variables on re-attach
set-option -g update-environment "SSH_AUTH_SOCK SSH_CLIENT SSH_CONNECTION SSH_TTY"
set -g set-clipboard on