-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
executable file
·38 lines (31 loc) · 1.09 KB
/
.tmux.conf
File metadata and controls
executable file
·38 lines (31 loc) · 1.09 KB
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-window-option -g automatic-rename on
set -g mouse on
set -g history-limit 30000
# Set ability to capture on start and restore on exit window data when running an application
setw -g alternate-screen on
setw -g automatic-rename on # Rename window to reflect current program.
set -g renumber-windows on # Renumber windows when a window is closed.
set -g set-titles on # Set terminal title.
set -g monitor-activity on
set -g visual-activity off
# Open new windows in same directory
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
## Navigation
## Create session
bind C-c new-session
## Find session
bind C-f command-prompt -p find-session 'switch-client -t %%'
# Keybindings
bind - split-window -v
bind | split-window -h
bind r source-file ~/.tmux.conf
## Switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
## Home/End
bind-key -n Home send Escape "OH"
bind-key -n End send Escape "OF"