From 4d22d6a375f912ded23eac3e28d72a3ee4433e53 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Tue, 16 Apr 2024 22:29:55 -0700 Subject: [PATCH] WIP --- tmux.conf | 36 ++++++++++++++---------------------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/tmux.conf b/tmux.conf index 1199806..6198618 100644 --- a/tmux.conf +++ b/tmux.conf @@ -1,25 +1,17 @@ -# easy reload config -bind-key C-r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded." +bind-key r source-file "~/.tmux.conf" + +bind-key h select-pane -L +bind-key j select-pane -D +bind-key k select-pane -U +bind-key l select-pane -R +bind-key space last-pane + +bind-key s split-window +bind-key v split-window -h -# C-b is not acceptable -- Vim uses it set-option -g prefix C-q +bind-key C-q send-prefix -# Set window split -bind-key C-v split-window -h -bind-key C-s split-window - -# Allows us to use C-q q to send commands to a TMUX session inside -# another TMUX session -bind-key q send-prefix - -# hjkl pane traversal -bind C-h select-pane -L -bind C-j select-pane -D -bind C-k select-pane -U -bind C-l select-pane -R - -set -g default-terminal "xterm-256color"' -set -ga terminal-overrides ",xterm-256color:Tc"' - -# Vi copypaste mode -set-window-option -g mode-keys vi +set-option -g mouse on +set-option -ga terminal-overrides ",*256col*:Tc" +set-option -g default-terminal "tmux-256color"