1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-19 10:51:57 +00:00
ohmyzsh/plugins/copyfile/copyfile.plugin.zsh

6 lines
105 B
Bash
Raw Normal View History

function copyfile {
[[ "$#" != 1 ]] && return 1
local file_to_copy=$1
cat $file_to_copy | pbcopy
}