dotfiles/zsh/.zsh/plugins/copyfile/copyfile.plugin.zsh

8 lines
148 B
Bash
Raw Normal View History

2024-04-26 17:41:20 +00:00
# Copies the contents of a given file to the system or X Windows clipboard
#
# copyfile <file>
function copyfile {
emulate -L zsh
clipcopy $1
}