Last active
December 14, 2015 19:29
-
-
Save mbauhardt/5137374 to your computer and use it in GitHub Desktop.
an ohmyzsh plugin to copy the content of a file into the clipboard. _pbcopy_ is required.
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
| function copyfile { | |
| [[ "$#" != 1 ]] && return 1 | |
| local file_to_copy=$1 | |
| cat $file_to_copy | pbcopy | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment