ohmyzsh/plugins/copyfile/copyfile.plugin.zsh

5 lines
105 B
Bash

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