diff --git a/tmux/tmux.conf b/tmux/tmux.conf new file mode 100644 index 0000000..7a379dd --- /dev/null +++ b/tmux/tmux.conf @@ -0,0 +1,41 @@ +setw -g mode-keys vi + +set -g default-terminal tmux-256color + +set-option -g base-index 1 + +set-option -g prefix C-a +unbind C-b +bind a send-prefix +bind-key C-a last-window + +unbind % +bind-key | split-window -h -c "#{pane_current_path}" +bind-key - split-window -v -c "#{pane_current_path}" +bind-key / split-window -h -c "#{pane_current_path}" + +bind-key c neww -c "#{pane_current_path}" + +bind-key h select-pane -L +bind-key j select-pane -D +bind-key k select-pane -U +bind-key l select-pane -R + +bind-key k confirm-before -p "Kill window #w? (y/n)" kill-window + +set -g mouse on + +unbind Space +bind-key Space next-window + +set -sg escape-time 50 + + +set -g status-justify centre +set -g status-bg colour16 +set -g status-left-length 100 +set -g status-fg colour12 +set -g status-left '#[fg=green]#(hostname -s)#[fg=colour12]:#[fg=colour12]#S ' +set -g window-status-format '#[fg=colour12]#I:#W ' +set -g window-status-current-format '#[fg=red]#I:#W#[fg=green]#F #[fg=colour12]' +