Created
March 23, 2015 14:41
-
-
Save nunull/81bb30b5d59e816ff705 to your computer and use it in GitHub Desktop.
bash-clip
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
# Edit some text in $EDITOR and copy it to the clipboard. | |
clip() { | |
$EDITOR ~/.tmp | |
if [ -e "~/.tmp" ]; then | |
cat ~/.tmp | pbcopy | |
rm ~/.tmp | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment