62 lines
1.3 KiB
Bash
62 lines
1.3 KiB
Bash
set -g default-terminal "xterm-256color"
|
|
|
|
set-option -sa terminal-overrides ",xterm-256color:RGB"
|
|
|
|
set-option -sg escape-time 10
|
|
set -g base-index 1
|
|
setw -g pane-base-index 1
|
|
|
|
set -s escape-time 0
|
|
|
|
set -g prefix C-a
|
|
unbind C-b
|
|
bind-key C-a send-prefix
|
|
|
|
unbind %
|
|
bind | split-window -h
|
|
|
|
unbind '"'
|
|
bind - split-window -v
|
|
|
|
unbind r
|
|
bind r source-file ~/.tmux.conf
|
|
|
|
bind -r j resize-pane -D 5
|
|
bind -r k resize-pane -U 5
|
|
bind -r l resize-pane -R 5
|
|
bind -r h resize-pane -L 5
|
|
|
|
bind -r m resize-pane -Z
|
|
|
|
unbind c
|
|
bind c new-window -c "#{pane_current_path}"
|
|
|
|
unbind b
|
|
bind b display-popup -w 80% -h 80% -E "tmux new-session -A -s FloatingSession-$(tmux display-message -p '#S')"
|
|
|
|
# -------------------------------
|
|
# Copy and Paste Options
|
|
# -------------------------------
|
|
set -g mouse on
|
|
set-option -g mouse on
|
|
set -g mode-keys vi
|
|
set-option -s set-clipboard off
|
|
|
|
bind P paste-buffer
|
|
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
|
bind-key -T copy-mode-vi y send-keys -X rectangle-toggle
|
|
|
|
unbind -T copy-mode-vi Enter
|
|
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel 'xclip -se c -i'
|
|
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'xclip -se c -i'
|
|
|
|
# -------------------------------
|
|
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
|
|
# Tmux Plugins
|
|
|
|
set -g @plugin 'christoomey/vim-tmux-navigator'
|
|
|
|
run '~/.tmux/plugins/tpm/tpm'
|