Skip to content

Instantly share code, notes, and snippets.

@mbauhardt
Last active December 14, 2015 19:29
Show Gist options
  • Select an option

  • Save mbauhardt/5137374 to your computer and use it in GitHub Desktop.

Select an option

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.
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