dotfiles/.config/tmux/tmux.conf
2024-06-17 15:26:59 -07:00

48 lines
1.1 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'
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'