Skip to content

Instantly share code, notes, and snippets.

@bralpassos
Last active December 10, 2021 21:30
Show Gist options
  • Save bralpassos/34dcf504809d6bbb22d0 to your computer and use it in GitHub Desktop.
Save bralpassos/34dcf504809d6bbb22d0 to your computer and use it in GitHub Desktop.
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
set -g default-terminal "screen-256color"
set -g mouse on
# to enable mouse scroll, see https://github.com/tmux/tmux/issues/145#issuecomment-150736967
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'"
#set -g set-titles off
#set -sg escape-time 4
#set -g mode-keys vi
#set-window-option -g xterm-keys on
#set-option -g allow-rename off
#set -g default-terminal screen-256color
#set -g terminal-overrides 'xterm*:smcup@:rmcup@'
#set-option -ga terminal-overrides ",xterm-256color:Tc"
#set -g status-justify left
#set -g monitor-activity on
#set -g visual-activity on
#set -g status-left-length 40
#setw -g status-fg white
#setw -g status-bg colour236
set -g history-limit 500000
# Bind v to start visual selection in copy-mode-vi mode
#bind-key -Tcopy-mode-vi 'v' send begin-selection
# Bind V to toggle visual block in copy-mode-vi mode
#bind-key -Tcopy-mode-vi 'V' send rectangle-toggle
# Bind y key in selection mode to copy selection to clipboard
#bind-key -Tcopy-mode-vi 'y' send copy-pipe 'xclip -in -selection clipboard'
# Kill window and pane without confirmation
#
# bind x kill-pane
# bind & kill-window
# 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