-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.tmux.conf
More file actions
40 lines (32 loc) · 907 Bytes
/
.tmux.conf
File metadata and controls
40 lines (32 loc) · 907 Bytes
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
# first remap ctrl-b to ctrl-a
unbind C-b
set -g prefix 'C-\'
# set the window and panes to start at 1 instead of 0
set -g base-index 1
setw -g pane-base-index 1
# C-\ r reloads this file
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# better keybinding for splitting windows
bind | split-window -h
bind - split-window -v
# be sure to be 256 color mode
# linux = xterm-256color
# mac = ansi (using iTerm anyways)
set -g default-terminal "screen-256color"
#set -g default-terminal "ansi"
# status line better colors
set -g status-fg white
set -g status-bg black
set -g status-left '#[fg=green]#H'
# movement keys (vi-style)
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# pane resize keys (vi-like)
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
# mouse stuff (yay works simply now!)
set -g mouse