Last active
March 14, 2022 12:28
-
-
Save eventomer/de5119b7175cbed1cfe5803a91fe9a2a to your computer and use it in GitHub Desktop.
tmux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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