Permalink
Browse files

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

…oard
  • Loading branch information...
1 parent 0198a12 commit 0854b18cdfa6b29b08848a23e79c3f214c5e0f8d Marko Bauhardt committed Apr 8, 2013
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
+}

0 comments on commit 0854b18

Please sign in to comment.