Created
January 15, 2013 12:08
-
-
Save Osse/4538174 to your computer and use it in GitHub Desktop.
Copy the current contents of the ZLE buffer to the 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
bindkey '^X' copy-command | |
function copy-command() { | |
xsel -ib <<< $BUFFER | |
} | |
zle -N copy-command |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment