Skip to content

Instantly share code, notes, and snippets.

@vinchi777
Last active June 26, 2020 06:40
Show Gist options
  • Save vinchi777/490c9563801ff35c3ce381340474bf09 to your computer and use it in GitHub Desktop.
Save vinchi777/490c9563801ff35c3ce381340474bf09 to your computer and use it in GitHub Desktop.
set -g mouse on
bind-key h split-window -h
bind-key v split-window -v
bind j select-pane -L
bind k select-pane -D
bind i select-pane -U
bind l select-pane -R
#reload tmux
bind r source-file ~/.tmux.conf
bind-key w choose-tree -w -N -F '#{?pane_format,#[fg=colour11]#{pane_current_command} #[fg=colour8]#{pane_title},#{?window_format,#[fg=colour211]#{window_name}#{window_flags}#{?#{==:#{window_panes},1}, #{?#{!=:#{window_name},#{pane_current_command}},#[fg=colour11]#{pane_current_command} ,}#[fg=colour8]#{pane_title},},#[fg=colour83]#{?session_grouped, (group #{session_group}: #[fg=colour28]#{session_group_list}),}#{?session_attached,#[fg=colour28](attached),#[fg=colour28](unattached)}}}'
set -sg escape-time 0
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'jimeh/tmux-themepack'
#set -g @themepack 'powerline/double/magenta'
set-option -g status-interval 5
set-option -g automatic-rename on
set-option -g automatic-rename-format '#{b:pane_current_path}'
set -g base-index 1
setw -g pane-base-index 1
set-option -g renumber-windows on
# Fixes vim background color
set -g terminal-overrides ',xterm-256color:Tc'
set -g default-terminal "tmux-256color"
set -as terminal-overrides ',xterm*:sitm=\E[3m'
# 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