commit 9ad29c13cac4f7e18a68b6d939f8580bc166cd06 Author: Tobias Date: Tue Nov 19 22:05:34 2024 +0100 Moving files from the old tmux repo to this one 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 [