home..
Tmux
Gekko Geko / May 2023 (108 Words, 1 Minutes)
tmux
linux
terminal
My tmux config
Install
git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm
Tmux config
# basic
set-option -sa terminal-overrides ",xterm*:Tc"
set -g default-terminal "screen-256color"
set -g base-index 1
setw -g pane-base-index 1
set-option -g mouse on
set-option -s set-clipboard off
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Use vim keybindings in copy mode
setw -g mode-keys vi
bind P paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X rectangle-toggle
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel 'xclip -se c -i'
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'xclip -se c -i'
# h,j,k,l bindings for splits
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# h,l bindings for splits
bind-key C-h previous-window
bind-key C-l next-window
# Use a to toggle synchronize panes
bind u set-window-option synchronize-panes
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# Tmux plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'catppuccin/tmux'
set -g @catppuccin_date_time "%Y-%m-%d %H:%M"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '$HOME/.config/tmux/plugins/tpm/tpm'
© 2024 Gekko Geko
•
Powered by GitHub Pages
•
Theme Moonwalk