Skip to content

Instantly share code, notes, and snippets.

@TiborUdvari
Last active April 15, 2024 08:57
Show Gist options
  • Save TiborUdvari/8a2afeb70f56653b1e024cde37bb2e45 to your computer and use it in GitHub Desktop.
Save TiborUdvari/8a2afeb70f56653b1e024cde37bb2e45 to your computer and use it in GitHub Desktop.
# Use tmux plugin manager
# https://github.com/tmux-plugins/tpm
# tmux to use non login shell
set -g default-command "${SHELL}"
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @yank_selection_mouse 'clipboard'
set -g escape-time 10
set -g mouse on
# Open in the current dir instead of initial tmux launch dir
# bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -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
# Linux specific, copy from primary buffer to clipboard
#bind C-y run-shell "tmux save-buffer - | xclip -selection clipboard -i"
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @continuum-restore 'on'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'github_username/plugin_name#branch'
# set -g @plugin '[email protected]:user/plugin'
# set -g @plugin '[email protected]: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