1235b77effa13dbb12de7056f8c73f7f820c061b

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #1702 from mbauhardt/copyfile

a plugin (function) which copies the content of a file into the clipboar...

Diff

 1diff --git a/plugins/copyfile/copyfile.plugin.zsh b/plugins/copyfile/copyfile.plugin.zsh
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..944a903c644689d26e5918ea67a4a55f94736eda
 4--- /dev/null
 5+++ b/plugins/copyfile/copyfile.plugin.zsh
 6@@ -0,0 +1,5 @@
 7+function copyfile {
 8+  [[ "$#" != 1 ]] && return 1
 9+  local file_to_copy=$1
10+  cat $file_to_copy | pbcopy
11+}