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

pull/1702/head
Marko Bauhardt 2013-04-08 22:32:00 +02:00
parent 0198a12953
commit 0854b18cdf
1 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,5 @@
function copyfile {
[[ "$#" != 1 ]] && return 1
local file_to_copy=$1
cat $file_to_copy | pbcopy
}