mirror of
https://github.com/runyanjake/dotfiles.git
synced 2025-10-04 13:57:28 -07:00
57 lines
1.3 KiB
Bash
57 lines
1.3 KiB
Bash
# Custom tmux config.
|
|
# @jrunyan
|
|
# https://github.com/runyanjake/tmux
|
|
|
|
### Theme
|
|
|
|
# Window
|
|
set -g set-titles on
|
|
set -g set-titles-string '#W - tmux'
|
|
set-option -g base-index 1
|
|
set-option -g window-status-style "bg=#1b1f32,fg=#9094a7"
|
|
set-option -g window-status-current-style "bg=#1b1f32,fg=#67c9e4,bold"
|
|
set -g automatic-rename on
|
|
set -g automatic-rename-format "#{pane_current_command}"
|
|
|
|
# Pane
|
|
set -g pane-base-index 1
|
|
set -g pane-border-style "bg=#1b1f32,fg=#99e9ff"
|
|
set -g pane-active-border-style "bg=#1b1f32,fg=#8b9efd"
|
|
|
|
# Status Bar
|
|
set-option -g status-style "bg=#51587b"
|
|
set -g status-position bottom
|
|
set -g status-left-length 40
|
|
set -g status-right-length 100
|
|
set -g status-left "#[fg=#75d5f0]#S #[bg=#252a41] "
|
|
set -g status-right "#[fg=#444b6f]#(date +'%H:%M') #[bg=#5e6587]"
|
|
|
|
### Functionality
|
|
|
|
# Set custom prefix key
|
|
unbind C-b
|
|
set -g prefix C-Space
|
|
bind C-Space send-prefix
|
|
|
|
# Split panes using | and -
|
|
bind | split-window -h
|
|
bind - split-window -v
|
|
unbind '"'
|
|
unbind %
|
|
|
|
# Enable mouse support
|
|
set -g mouse on
|
|
|
|
# Allow the terminal to scrollback
|
|
set -g history-limit 10000
|
|
|
|
### Plugins
|
|
|
|
# List of plugins
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
|
|
# Initialize tmux plugin manager (Keep @ bottom of file)
|
|
run ~/.tmux/plugins/tpm/tpm
|
|
|