From ebd29ab5d5a492fe064763ef30e008bd0a2d0964 Mon Sep 17 00:00:00 2001 From: Tiffany Lin Date: Sat, 3 Oct 2020 09:37:21 -0700 Subject: [PATCH] Add devpod note This should be deleted once the tmux version on the devpod is updated --- tmux.conf.devpod | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 tmux.conf.devpod diff --git a/tmux.conf.devpod b/tmux.conf.devpod new file mode 100644 index 0000000..c9e4bcb --- /dev/null +++ b/tmux.conf.devpod @@ -0,0 +1,46 @@ +# Kept as a note, TODO update devpod tmux version +# +# -- user customizations ------------------------------------------------------- +# this is the place to override or undo settings + +# Open tmux with zsh +set -g default-shell /bin/zsh +set -g default-command /bin/zsh + +# increase history size +set -g history-limit 10000 + +# start with mouse mode disabled +set -g mouse off + +# force Vi mode +# really you should export VISUAL or EDITOR environment variable, see manual +#set -g status-keys vi +#set -g mode-keys vi + +# replace C-b by C-a instead of using both prefixes +# set -gu prefix2 +# unbind C-a +# unbind C-b +# set -g prefix C-Space +# bind C-Space send-prefix + +# move status line to top +set -g status-position top + +# split panes using | and - +# bind \\ split-window -h # for tmux 3.x and above +bind \ split-window -h +bind - split-window -v +unbind '"' +unbind % + +# switch panes using Alt-arrow without prefix +bind -n M-h select-pane -L +bind -n M-l select-pane -R +bind -n M-k select-pane -U +bind -n M-j select-pane -D + +# set space to toggle between pane layouts +bind '"' next-layout +