1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-25 23:30:08 +00:00

Merge pull request #1702 from mbauhardt/copyfile

a plugin (function) which copies the content of a file into the clipboar...
This commit is contained in:
Robby Russell 2013-04-23 19:59:51 -07:00
commit 1235b77eff

View file

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