diff options
author | Juan J. Martinez <jjm@usebox.net> | 2019-02-21 09:55:03 +0000 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2022-05-29 22:57:28 +0100 |
commit | a402ca8e0ea6d4b05a78661ba9bb55360a8ff53d (patch) | |
tree | 21fe561d3fa2b67c5010513720fe39d8039bc839 | |
parent | 5c2a6658820ec7d037b22cff5f3186d31d1208af (diff) | |
download | dotnvim-a402ca8e0ea6d4b05a78661ba9bb55360a8ff53d.tar.gz dotnvim-a402ca8e0ea6d4b05a78661ba9bb55360a8ff53d.zip |
Added tmux conf
-rw-r--r-- | tmux.conf | 24 | ||||
-rw-r--r-- | tmux.md | 17 |
2 files changed, 41 insertions, 0 deletions
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" @@ -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" +``` + |