From a402ca8e0ea6d4b05a78661ba9bb55360a8ff53d Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Thu, 21 Feb 2019 09:55:03 +0000 Subject: Added tmux conf --- tmux.conf | 24 ++++++++++++++++++++++++ tmux.md | 17 +++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 tmux.conf create mode 100644 tmux.md diff --git a/tmux.conf b/tmux.conf new file mode 100644 index 0000000..bbf0e4b --- /dev/null +++ b/tmux.conf @@ -0,0 +1,24 @@ +# use C - a +unbind C-b +set-option -g prefix C-a +bind-key C-a send-prefix + +# split panes using | and - +bind | split-window -h +bind - split-window -v +unbind '"' +unbind % + +# switch panes using Alt-arrow without prefix +bind -n M-Left select-pane -L +bind -n M-Right select-pane -R +bind -n M-Up select-pane -U +bind -n M-Down select-pane -D + +# Enable mouse mode (tmux 2.1 and above) +set -g mouse on + +# don't rename windows automatically +set-option -g allow-rename off + +set -g default-terminal "xterm-256color" diff --git a/tmux.md b/tmux.md new file mode 100644 index 0000000..cef3651 --- /dev/null +++ b/tmux.md @@ -0,0 +1,17 @@ +*Configuration for tmux* + +This is not vim related, but I find it very useful so I like to keep it with my +vim conf. + +Link you tmux.conf to the version here with: + +``` +ln -s ~/.vim/tmux.conf ~/.tmux.conf +``` + +Run tmux with `-u2`, or add an alias to your `~/.bashrc`: + +``` +alias tmux="tmux -u2" +``` + -- cgit v1.2.3