50 lines
1.2 KiB
Bash
50 lines
1.2 KiB
Bash
# Set true color
|
|
set-option -sa terminal-overrides ",xterm*:Tc"
|
|
|
|
# Mouse
|
|
set -g mouse on
|
|
|
|
# Set prefix
|
|
unbind C-b
|
|
set -g prefix C-Space
|
|
bind C-Space send-prefix
|
|
|
|
# Renumber windows/panes
|
|
set -g base-index 1
|
|
set -g pane-base-index 1
|
|
set-window-option -g pane-base-index 1
|
|
set-option -g renumber-windows on
|
|
|
|
# Optn panes in current directory
|
|
bind '"' split-window -v -c "#{pane_current_path}"
|
|
bind % split-window -h -c "#{pane_current_path}"
|
|
|
|
# Vim-like pane switching
|
|
bind h select-pane -L
|
|
bind j select-pane -D
|
|
bind k select-pane -U
|
|
bind l select-pane -R
|
|
|
|
# Other opts
|
|
set -g history-limit 1000000
|
|
set -g set-clipboard on
|
|
|
|
# Plugins
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
|
set -g @plugin 'tmux-plugins/tmux-continuum'
|
|
|
|
# Tokyo Night requires a new version of a `bash`, install it via homebrew: `brew install bash`
|
|
set -g @plugin 'janoamaral/tokyo-night-tmux'
|
|
|
|
# Theme
|
|
set -g status-position top
|
|
|
|
set -g @tokyo-night-tmux_window_id_style fsquare
|
|
set -g @tokyo-night-tmux_pane_id_style hsquare
|
|
set -g @tokyo-night-tmux_zoom_id_style dsquare
|
|
|
|
|
|
run '~/.tmux/plugins/tpm/tpm'
|