mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
docs(plugins/copyfile): document that filename is optional
This commit is contained in:
parent
d47df7208a
commit
d26a537c81
1 changed files with 4 additions and 3 deletions
|
|
@ -1,11 +1,12 @@
|
||||||
# Copies the contents of a given file to the system or X Windows clipboard
|
# Copies the contents of a given file or stdin to the system or X Windows
|
||||||
|
# clipboard
|
||||||
#
|
#
|
||||||
# Usage: copyfile <file>
|
# Usage: copyfile [<file>]
|
||||||
function copyfile {
|
function copyfile {
|
||||||
emulate -L zsh
|
emulate -L zsh
|
||||||
|
|
||||||
clipcopy "${1-}" || {
|
clipcopy "${1-}" || {
|
||||||
echo "Usage: copyfile <file>"
|
echo "Usage: copyfile [<file>]"
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue