update tmux config
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
set -g escape-time 0
|
||||
set -g default-terminal "screen-256color"
|
||||
set -g history-limit 50000
|
||||
|
||||
# Start indexes at 1 instead of 0
|
||||
set -g base-index 1
|
||||
setw -g pane-base-index 1
|
||||
|
||||
@@ -10,18 +12,21 @@ setw -g pane-base-index 1
|
||||
set -g set-titles on
|
||||
set -g set-titles-string "#I: #W"
|
||||
|
||||
# Change activation from ctrl+a to ctrl+a
|
||||
set -g prefix C-a
|
||||
unbind C-b
|
||||
bind-key C-a send-prefix
|
||||
|
||||
# Split windows with | and -
|
||||
unbind %
|
||||
bind | split-window -h
|
||||
|
||||
unbind '"'
|
||||
bind - split-window -v
|
||||
|
||||
# Reload config
|
||||
unbind r
|
||||
bind r source-file ~/.config/tmux/tmux.conf; display-message "Config reloaded."
|
||||
bind r source-file ~/.config/tmux/tmux.conf \; display "Config reloaded."
|
||||
|
||||
bind -r j resize-pane -D 5
|
||||
bind -r k resize-pane -U 5
|
||||
@@ -36,7 +41,7 @@ bind c new-window -c "#{pane_current_path}"
|
||||
# Prompt to rename new windows on creation
|
||||
set-hook -g after-new-window 'command-prompt -I "#{window_pane}" "rename-window '%%'"'
|
||||
|
||||
#set -g mouse on
|
||||
set -g mouse on
|
||||
|
||||
set-window-option -g mode-keys vi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user