Created
April 26, 2011 16:10
-
-
Save smerrill/942554 to your computer and use it in GitHub Desktop.
Make X11 apps that expect xsel work with the OS X clipboard.
This file contains 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
# Mimic xsel simply for the benefit of X11 apps. | |
xsel() { | |
if [[ $@ == "-ib" ]]; then | |
command pbcopy; | |
elif [[ $@ == '-ob' ]]; then | |
command pbpaste; | |
else | |
command xsel "$@"; | |
fi | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is enough to get the clipboard module from https://github.com/muennich/urxvt-perls to work without modification on OS X.