From 0b2a271f0bf57925b2b4b04fb3f35c929c3df8ba Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Wed, 12 May 2021 18:16:35 +0530 Subject: updated tmux config --- tmux/.tmux.conf | 79 +++++++++++++++++++++++++++------------------------------ 1 file changed, 38 insertions(+), 41 deletions(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index f2c781a..175df16 100755 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -1,43 +1,40 @@ -set -g prefix C-a -unbind-key C-b -bind-key C-a send-prefix - -# start with window 1 (instead of 0) +set -g default-terminal "tmux-256color" set -g base-index 1 - -# start with pane 1 -set -g pane-base-index 1 - -# history -set -g history-limit 4096 - -# mouse +set -s escape-time 0 set -g mouse on - -# allow terminal scrolling -set-option -g terminal-overrides 'xterm*:smcup@:rmcup@' - -# resizing -setw -g aggressive-resize on - -# window status -set-option -g status-position bottom -set -g status-bg default - -# info on right (no session display) -set-option -g status-right "" -set-option -g status-left "" - -# toggle status bar visibility -bind t set status - -# navigate throught windows -bind-key -n S-Left previous-window -bind-key -n S-Right next-window - -# colors -setw -g window-status-format "#[fg=colour8]#W " -setw -g window-status-current-format "#[fg=colour6]#W " -# set -g pane-border-fg colour0 -# set -g pane-active-border-fg colour0 - +set-option -g prefix C-a +unbind-key C-b +bind-key C-a send-prefix +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R +bind r source-file ~/.tmux.conf +# Enable vi keys. +setw -g mode-keys vi + +# Escape turns on copy mode +bind Escape copy-mode + +# v in copy mode starts making selection +bind-key -T copy-mode v send -X begin-selection +bind-key -T copy-mode y send -X copy-selection + +# make Prefix p paste the buffer. +unbind p +bind p paste-buffer + +set-option -g status-position top +set -g pane-border-style fg=colour15 +set -g pane-active-border-style fg=colour8 + +set -g status-justify right +set -g status-right "" +set -g status-style "bg=colour0" +set -ag status-style "fg=colour7" + +set -g window-status-current-format "#[fg=colour15] #W" +set -g window-status-format "#[fg=colour8] #W" + +set -g status-left-length 100 +set -ag status-left "#[fg=colour8]bat #[fg=colour15]#(~/.bin/bat) " -- cgit v1.2.3