-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
502eb80
commit ef347cd
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Control a prefix. | ||
set -g prefix C-a | ||
|
||
# Reload tmux.conf | ||
bind r source-file ~/.tmux.conf \; display "Reloaded .tmux.conf" | ||
|
||
# ; gets you to command mode | ||
bind \; command-prompt | ||
|
||
# Remove delay | ||
set -sg escape-time 1 | ||
|
||
# Start numbering at 1 (easier to switch between a few screens) | ||
set -g base-index 1 | ||
setw -g pane-base-index 1 | ||
|
||
# Map splits | ||
bind | split-window -h | ||
bind - split-window -v | ||
|
||
# Map moving panes | ||
bind h select-pane -L | ||
bind j select-pane -D | ||
bind k select-pane -U | ||
bind l select-pane -R | ||
|
||
# Map pane resizing | ||
bind H resize-pane -L 5 | ||
bind J resize-pane -D 5 | ||
bind K resize-pane -U 5 | ||
bind L resize-pane -R 5 | ||
|
||
# Act like vim | ||
setw -g mode-keys vi | ||
unbind [ | ||
bind Escape copy-mode | ||
unbind p | ||
bind p paste-buffer | ||
bind -t vi-copy 'v' begin-selection | ||
bind -t vi-copy 'y' copy-selection | ||
|
||
# More room for status left | ||
set -g status-left-length 30 |