tmux/.tmux.conf

49 lines
3.2 KiB
Bash

set-option -sa terminal-overrides ",xterm*:Tc"
set -g mouse on
# Set prefix
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
# ─< Start windows and panes at 1, not 0 >──────────────────────────────────────────────────
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
# ────────────────────────────────────< List of plugins >──────────────────────────────────
# ─< Import Plugins >───────────────────────────────────────────────────────────────────────
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'catppuccin/tmux'
set -g @plugin 'janoamaral/tokyo-night-tmux'
# ─────────────────────────────────────────< Themes >─────────────────────────────────────────
# ─< catppuccin >─────────────────────────────────────────────────────────────────────────
# set -g @catppuccin_flavour 'mocha' # latte, frappe, mocha or macchiato
# ─< tokyo-night >────────────────────────────────────────────────────────────────────────
set -g @tokyo-night-tmux_window_id_style digital
set -g @tokyo-night-tmux_pane_id_style hsquare
set -g @tokyo-night-tmux_zoom_id_style dsquare
run '~/.tmux/plugins/tpm/tpm'
# ─< Split panes in current directory >───────────────────────────────────────────────────
bind j split-window -v -c "#{pane_current_path}"
bind h split-window -h -c "#{pane_current_path}"
# ─< Make pane fullscreen >─────────────────────────────────────────────────────────────────
bind -n C-f resize-pane -Z
# ───────────────────────────────────< Navigate the panes >───────────────────────────────────
# ─< Switch to the left pane with Prefix + h >────────────────────────────────────────────────
bind -n C-h select-pane -L
# ─< Switch to the right pane with Prefix + l >───────────────────────────────────────────────
bind -n C-l select-pane -R