mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-22 15:53:39 +08:00
5c8b0cc0c1
Change copydir, copyfile, and coffee plugins to use them, instead of the Mac-only `pbcopy` command.
8 lines
148 B
Bash
8 lines
148 B
Bash
# Copies the contents of a given file to the system or X Windows clipboard
|
|
#
|
|
# copyfile <file>
|
|
function copyfile {
|
|
emulate -L zsh
|
|
clipcopy $1
|
|
}
|