diff options
author | julianteu <julianteu@gmail.com> | 2018-07-12 19:22:06 +0200 |
---|---|---|
committer | julianteu <julianteu@gmail.com> | 2018-07-12 19:22:06 +0200 |
commit | e4bf7f0a72c827823527abd17666935429cd65cb (patch) | |
tree | 99405fa4148f45255956e2ee2f5653a468b73b15 /.tmux.conf | |
parent | e6d5467e585ca659de12752eab1dd2b7eaa61e13 (diff) |
Added tmux config
Diffstat (limited to '.tmux.conf')
-rw-r--r-- | .tmux.conf | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..f1a1dae --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,51 @@ +set -g default-terminal "screen-256color" + +# Bind Ctrl+a +unbind C-b +set -g prefix C-a +bind C-a send-prefix + +set -g history-limit 20000 + +# for nested tmux sessions +bind-key a send-prefix + +# Rather than constraining window size to the maximum size of any client +# connected to the *session*, constrain window size to the maximum size of any +setw -g aggressive-resize on + +# make window/pane index start with 1 +set -g base-index 1 +setw -g pane-base-index 1 + +# Bindings + +# reload config file +bind r source-file ~/.tmux.conf \; display "Config Reloaded!" + +# pane movement shortcuts +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + +# Hmm what does -r mean, i took most of it from https://github.com/nicknisi/dotfiles +# Resize pane shortcuts +bind -r H resize-pane -L 10 +bind -r J resize-pane -D 10 +bind -r K resize-pane -U 10 +bind -r L resize-pane -R 10 + +# enable mouse support for switching panes/windows +setw -g mouse on + + +# set vi mode for copy mode +setw -g mode-keys vi + +# split panes using | and - +bind | split-window -h +bind - split-window -v +unbind '"' +unbind % + |