Skip to content

Instantly share code, notes, and snippets.

@SuyogSoti
Last active January 3, 2023 08:42
Show Gist options
  • Save SuyogSoti/021e853c20307743e50d70babebbc731 to your computer and use it in GitHub Desktop.
Save SuyogSoti/021e853c20307743e50d70babebbc731 to your computer and use it in GitHub Desktop.
Tmux Configuration
set-window-option -g mode-keys vi
# address vim mode switching delay (http://superuser.com/a/252717/65504)
set -s escape-time 0
# reload file
bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
# tmux messages are displayed for 4 seconds
set -g display-time 4000
set-option -g display-panes-time 3000
# upgrade $TERM
set -g default-terminal "screen-256color"
# set-option -ga terminal-overrides ",xterm-256color:Tc"
set -g mouse on
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# make the resize possible with new-session attach
set-window-option -g aggressive-resize
# split panes using | and -
bind \\ split-window -h
bind - split-window -v
unbind '"'
unbind %
# switch panes using Alt-arrow without prefix
bind -n C-Left select-pane -L
bind -n C-Right select-pane -R
bind -n C-Up select-pane -U
bind -n C-Down select-pane -D
bind -n C-h select-pane -L
bind -n C-l select-pane -R
bind -n C-k select-pane -U
bind -n C-j select-pane -D
bind -n S-Left previous-window
bind -n S-Right next-window
bind -n M-o next-window
# ############################################
# seesion fuzzy finder
bind s neww '~/.config/nvim/session_finder.sh finder'
bind p neww '~/.config/nvim/session_finder.sh git-worktree'
#status bar
# set -g @themepack 'powerline/block/green'
# set -g @themepack 'powerline/double/magenta'
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'jimeh/tmux-themepack'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'siadat/session-finder'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com/user/plugin'
# set -g @plugin 'git@bitbucket.com/user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment