dotfiles/zsh/plugins/copyfile.plugin.zsh

11 lines
282 B
Bash
Raw Normal View History

2021-12-29 19:14:18 +01:00
# vim:sts=2:sw=2:ft=zsh
# Taken from: https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/copyfile/copyfile.plugin.zsh
#
# Copies the contents of a given file to the system or X Windows clipboard
#
# copyfile <file>
function copyfile {
emulate -L zsh
clipcopy $1
}