From 9ad29c13cac4f7e18a68b6d939f8580bc166cd06 Mon Sep 17 00:00:00 2001 From: Tobias Date: Tue, 19 Nov 2024 22:05:34 +0100 Subject: [PATCH] Moving files from the old tmux repo to this one --- README.MD | 14 ++++++++++++++ tmux.conf | 20 ++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 README.MD create mode 100644 tmux.conf diff --git a/README.MD b/README.MD new file mode 100644 index 0000000..2a1f085 --- /dev/null +++ b/README.MD @@ -0,0 +1,14 @@ +As the discripion states, I aim to offer a tmux config that makes more sence for me. + + + To use this config copy the tmux.conf to ~/.tmux.conf, and then run tmux source-file ~/.tmux.conf + Now if you want the tmux config to be a the gobal config, you can copy it to /etc/tmux.conf, and then run sudo tmux source-file /etc/tmux.conf + + +The first change is that Tmux starts at panel 1 instead of panel 0 + +The second change is changing the prefix keys from CTRL+b to CTRL+a + +The third change is that instead of using " and % to tile the panels I and - is being used + +And the forth change is changing copy mode from [ to v, as I think it makes sence when vim uses v for more or less the same function diff --git a/tmux.conf b/tmux.conf new file mode 100644 index 0000000..388e40a --- /dev/null +++ b/tmux.conf @@ -0,0 +1,20 @@ +# Start windows and panes at 1, not 0 +set -g base-index 1 +setw -g pane-base-index 1 + + +# remap prefix from 'C-b' to 'C-a' +unbind C-b +set-option -g prefix C-a +bind-key C-a send-prefix + + +# split panes using | and - +bind I split-window -h +bind - split-window -v +unbind '"' +unbind % + +# New keybinds for copy mode +bind v copy-mode +unbind [