Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

a plugin (function) which copies the content of a file into the clipb…

…oard
  • Loading branch information...
commit 0854b18cdfa6b29b08848a23e79c3f214c5e0f8d 1 parent 0198a12
@mbauhardt mbauhardt authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 plugins/copyfile/copyfile.plugin.zsh
View
5 plugins/copyfile/copyfile.plugin.zsh
@@ -0,0 +1,5 @@
+function copyfile {
+ [[ "$#" != 1 ]] && return 1
+ local file_to_copy=$1
+ cat $file_to_copy | pbcopy
+}
Please sign in to comment.
Something went wrong with that request. Please try again.