Created
January 12, 2016 23:25
-
-
Save otzoran/5e076a20c9b61f30ab4a to your computer and use it in GitHub Desktop.
pbcopy/paste on Linux
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
# pbcopy (on Mac OS), copies stdin to the X clipboard, the aliases created here simulate that. | |
# need the 'xsel' package | |
if [[ $(uname -s) == "Linux" && -x /usr/bin/xsel ]]; then | |
alias pbcopy='xsel --clipboard --input' | |
alias pbpaste='xsel --clipboard --output' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment