Initial commit
This commit is contained in:
32
dotfiles/common/.tmux.conf
Normal file
32
dotfiles/common/.tmux.conf
Normal file
@@ -0,0 +1,32 @@
|
||||
# Synchronize windows shortcut
|
||||
unbind a
|
||||
bind a set-window-option synchronize-panes
|
||||
|
||||
# Use | and - to split a window vertically and horizontally instead of " and % respoectively
|
||||
unbind '"'
|
||||
unbind %
|
||||
bind | split-window -h -c "#{pane_current_path}"
|
||||
bind - split-window -v -c "#{pane_current_path}"
|
||||
|
||||
# Automatically set window title
|
||||
set-window-option -g automatic-rename on
|
||||
set-option -g set-titles on
|
||||
|
||||
# Alias (Ctrl-b + k) to kill the current session
|
||||
bind-key k kill-session
|
||||
unbind r
|
||||
bind r \
|
||||
source-file ~/.tmux.conf \;\
|
||||
display 'Reloaded tmux config'
|
||||
|
||||
# Set the history limit so we get lots of scrollback.
|
||||
setw -g history-limit 50000000
|
||||
|
||||
# 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
|
||||
|
||||
# Enable mouse mode
|
||||
set -g mouse on
|
||||
Reference in New Issue
Block a user