update tmux config
This commit is contained in:
@@ -3,6 +3,8 @@
|
|||||||
set -g escape-time 0
|
set -g escape-time 0
|
||||||
set -g default-terminal "screen-256color"
|
set -g default-terminal "screen-256color"
|
||||||
set -g history-limit 50000
|
set -g history-limit 50000
|
||||||
|
|
||||||
|
# Start indexes at 1 instead of 0
|
||||||
set -g base-index 1
|
set -g base-index 1
|
||||||
setw -g pane-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 on
|
||||||
set -g set-titles-string "#I: #W"
|
set -g set-titles-string "#I: #W"
|
||||||
|
|
||||||
|
# Change activation from ctrl+a to ctrl+a
|
||||||
set -g prefix C-a
|
set -g prefix C-a
|
||||||
unbind C-b
|
unbind C-b
|
||||||
bind-key C-a send-prefix
|
bind-key C-a send-prefix
|
||||||
|
|
||||||
|
# Split windows with | and -
|
||||||
unbind %
|
unbind %
|
||||||
bind | split-window -h
|
bind | split-window -h
|
||||||
|
|
||||||
unbind '"'
|
unbind '"'
|
||||||
bind - split-window -v
|
bind - split-window -v
|
||||||
|
|
||||||
|
# Reload config
|
||||||
unbind r
|
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 j resize-pane -D 5
|
||||||
bind -r k resize-pane -U 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
|
# Prompt to rename new windows on creation
|
||||||
set-hook -g after-new-window 'command-prompt -I "#{window_pane}" "rename-window '%%'"'
|
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
|
set-window-option -g mode-keys vi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user