mirror of
https://github.com/fscotto/infra.git
synced 2026-07-29 16:20:01 +00:00
Add basic tmux configuration for WSL
This commit is contained in:
27
dotfiles/workstation_dev_wsl/.tmux.conf
Normal file
27
dotfiles/workstation_dev_wsl/.tmux.conf
Normal file
@@ -0,0 +1,27 @@
|
||||
# Prefix and Emacs-style key handling
|
||||
unbind C-b
|
||||
set -g prefix C-x
|
||||
bind C-x send-prefix
|
||||
set -g status-keys emacs
|
||||
setw -g mode-keys emacs
|
||||
|
||||
# General behavior
|
||||
set -g mouse on
|
||||
set -g base-index 1
|
||||
setw -g pane-base-index 1
|
||||
set -g renumber-windows on
|
||||
set -g history-limit 10000
|
||||
set -s escape-time 0
|
||||
set -g focus-events on
|
||||
|
||||
# Keep the current directory when creating windows and panes
|
||||
bind c new-window -c "#{pane_current_path}"
|
||||
bind '"' split-window -v -c "#{pane_current_path}"
|
||||
bind % split-window -h -c "#{pane_current_path}"
|
||||
|
||||
# Reload the configuration with C-x r
|
||||
bind r source-file ~/.tmux.conf \; display-message "tmux configuration reloaded"
|
||||
|
||||
# Terminal capabilities
|
||||
set -g default-terminal "tmux-256color"
|
||||
set -as terminal-features ",xterm-256color:RGB"
|
||||
Reference in New Issue
Block a user