tmux shenanigans
This commit is contained in:
20
tmux.conf
20
tmux.conf
@@ -1,30 +1,22 @@
|
||||
set -g default-command "reattach-to-user-namespace -l $SHELL"
|
||||
set -g default-command "reattach-to-user-namespace -l fish"
|
||||
set -g default-terminal "screen-256color"
|
||||
run "~/.dotfiles/tmux.sh"
|
||||
set -g base-index 1
|
||||
if-shell '[ "$(tmux -V | awk '{print $2*10}')" -ge 17 ]' 'set -g pane-base-index 1'
|
||||
set -g set-titles on
|
||||
set -g status-keys vi
|
||||
# Faster Command Sequences
|
||||
set -s escape-time 0
|
||||
# mouse can be used to select panes
|
||||
set -g mouse-select-pane on
|
||||
# mouse can be used to select windows (by clicking in the status bar)
|
||||
set -g mouse-select-window on
|
||||
# mouse can be used to resize panes (by dragging dividers)
|
||||
set -g mouse-resize-pane on
|
||||
# not really sure what this does, but with it, the scrollwheel works inside Vim
|
||||
set -g mouse-utf8 on
|
||||
|
||||
set -g set-clipboard on
|
||||
set -g history-limit 50000
|
||||
|
||||
set -g mouse-utf8 on
|
||||
|
||||
setw -g utf8 on
|
||||
setw -g xterm-keys on
|
||||
setw -g automatic-rename on
|
||||
setw -g monitor-activity on
|
||||
setw -g aggressive-resize on
|
||||
# allow mouse to enter copy mode and initiate selection
|
||||
setw -g mode-mouse on
|
||||
|
||||
unbind C-a
|
||||
unbind C-b
|
||||
@@ -38,7 +30,7 @@ bind a send-key C-a
|
||||
|
||||
set -g xterm-keys on
|
||||
|
||||
bind | split-window -h # split horiz
|
||||
bind _ split-window -v # split vert
|
||||
bind | split-window -h -c "#{pane_current_path}"# split horiz
|
||||
bind _ split-window -v -c "#{pane_current_path}"# split vert
|
||||
|
||||
bind A command-prompt "rename-window '%%'"
|
||||
|
||||
Reference in New Issue
Block a user