Created
June 11, 2018 09:03
-
-
Save mogelbrod/dab52ee42d0cdca47a9eb07b1de8fd66 to your computer and use it in GitHub Desktop.
Make Ctrl-] copy current input to system clipboard
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
# Make Ctrl-] copy current input to system clipboard | |
pbcopy-whole-line() { | |
echo -n $BUFFER | pbcopy | |
}; zle -N pbcopy-whole-line | |
bindkey '^]' pbcopy-whole-line |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment