From 63d78670e5c32c3c8216ddc2c72445f2a32dc7cb Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Thu, 28 May 2026 15:22:27 +0800 Subject: setup tmux --- .tmux.conf | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .tmux.conf (limited to '.tmux.conf') diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..1ed550d --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,31 @@ +# Change the prefix key to Ctrl-Space +set -g prefix C-Space +unbind C-b +bind C-Space send-prefix + +# Toggle the status line with prefix + Space +bind Space set -g status + +# Split the window horizontally with prefix + | +# Split the window vertically with prefix + - +unbind \% +unbind \" +bind | split-window -h +bind - split-window -v + +# Navigate panes with prefix + hjkl +unbind l +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + +# Start window and pane numbering from 1 instead of 0 +set -g base-index 1 +set -g pane-base-index 1 + +# Show the clock on the right side of the status line +set -g status-right '%H:%M' + +# Use the terminal's default foreground and background colors +set -g status-style fg=default,bg=default -- cgit v1.2.3