dotfiles/plugins/copyfile/copyfile.plugin.zsh
Dreaded_X 21ca061287 Squashed 'oh-my-zsh/' content from commit 550ccca
git-subtree-dir: oh-my-zsh
git-subtree-split: 550ccca91cb45fcf26a8f2c3c60da675b995e3f3
2015-02-05 18:32:26 +01:00

6 lines
105 B
Bash

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