Last active
September 15, 2018 02:56
-
-
Save phwelo/86bd30185b9a2ece5f32fd87792bc762 to your computer and use it in GitHub Desktop.
Holy hell I finally got the clipboard to work like I want. Save Save Save
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
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license, | |
# without any warranty. | |
# Copyright 2012— Gregory Pakosz (@gpakosz). | |
# /!\ do not edit this file | |
# -- general ------------------------------------------------------------------- | |
setw -g xterm-keys on | |
set -s escape-time 10 # faster command sequences | |
set -sg repeat-time 600 # increase repeat timeout | |
set -s focus-events on | |
#---mouse----working!!!------- | |
set -g mouse on | |
# highlight & hit {enter} to copy to clipboard | |
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard" | |
# highlight & simply let go to copy to clipboard | |
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -se c -i" | |
# keep the super basic session handling just in case i want it some time | |
set -g prefix2 C-a # GNU-Screen compatible prefix | |
bind C-a send-prefix -2 | |
set -g default-command /usr/bin/zsh | |
set -g default-shell /usr/bin/zsh | |
# reload configuration | |
bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced' | |
# create session | |
bind C-c new-session | |
# turn off status bar since idgaf about session switching | |
set -g status off | |
# -- buffers --who knows what this is, leave it i guess-------------------------- | |
bind b list-buffers # list paste buffers | |
bind p paste-buffer # paste from the top paste buffer | |
bind P choose-buffer # choose which buffer to paste from | |
# -- 8< --------------------------------bug workaround i guess?------------------ | |
run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment