Skip to content

Instantly share code, notes, and snippets.

@eventomer
Last active March 14, 2022 12:28
Show Gist options
  • Save eventomer/de5119b7175cbed1cfe5803a91fe9a2a to your computer and use it in GitHub Desktop.
Save eventomer/de5119b7175cbed1cfe5803a91fe9a2a to your computer and use it in GitHub Desktop.
tmux
# Remap prefix to screens
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# Quality of life stuff
set -g history-limit 10000
set -g allow-rename off
## Join Windows
bind-key j command-prompt -p "join pane from:" "join-pane -s ':%%'"
bind-key s command-prompt -p "send pane to:" "join-pane -t ':%%'"
#search Mode VI (default is emac)
set-window-option -g mode-keys vi
# mouse scroll enable
set -g mouse on
run-shell /opt/tmux-logging/logging.tmux
#for copying to sys clipboard
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"
bind -T copy-mode-vi C-j send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"
#general other stuff
set -g default-terminal "xterm-256color"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment