52 lines
1.2 KiB
Bash
52 lines
1.2 KiB
Bash
# List of plugins
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
set -g @plugin 'noscript/tmux-mighty-scroll'
|
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
|
set -g @plugin 'schasse/tmux-jump'
|
|
set -g @jump-key 's'
|
|
set -g @plugin 'tmux-plugins/tmux-battery'
|
|
|
|
# Use zsh as default
|
|
set -g default-shell /bin/zsh
|
|
|
|
# Enable 256-color and true-color (24-bit) support in tmux
|
|
set -g default-terminal "screen-256color"
|
|
set -ga terminal-overrides ",*256col*:Tc"
|
|
|
|
# Prefix to Ctrl+f
|
|
unbind C-b
|
|
set-option -g prefix C-f
|
|
|
|
# Reload config
|
|
unbind r
|
|
bind r source-file ~/.tmux.conf
|
|
|
|
# New window in same path
|
|
bind c new-window -c "#{pane_current_path}"
|
|
|
|
# Move between panes with vim keys
|
|
bind h select-pane -L
|
|
bind l select-pane -R
|
|
bind k select-pane -U
|
|
bind j select-pane -D
|
|
|
|
bind g copy-mode
|
|
|
|
# Move with vi keys
|
|
setw -g mode-keys vi
|
|
|
|
# Theme
|
|
source-file ~/files/scripts/config_files/tmux/theme.conf
|
|
|
|
# don't do anything when a 'bell' rings
|
|
set -g visual-activity off
|
|
set -g visual-bell off
|
|
set -g visual-silence off
|
|
setw -g monitor-activity off
|
|
set -g bell-action none
|
|
|
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
|
run '~/.tmux/plugins/tpm/tpm'
|