Logo
Explore Help
Sign In
shell-user/oh-my-zsh
1
0
Fork 0
You've already forked oh-my-zsh
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-05-11 05:55:17 +00:00
Code Issues Projects Releases Wiki Activity
Files
a33ae92f4d78d4e4089d4d04a1d9f18bb11f39e1
oh-my-zsh/plugins/copyfile/copyfile.plugin.zsh

8 lines
148 B
Bash
Raw Normal View History

Add clipcopy() and clippaste() generic cross-platform CLI clipboard functions. Change copydir, copyfile, and coffee plugins to use them, instead of the Mac-only `pbcopy` command.
2015-08-17 22:53:45 -04:00
# Copies the contents of a given file to the system or X Windows clipboard
#
# copyfile <file>
a plugin (function) which copies the content of a file into the clipboard
2013-04-08 22:32:00 +02:00
function copyfile {
Add clipcopy() and clippaste() generic cross-platform CLI clipboard functions. Change copydir, copyfile, and coffee plugins to use them, instead of the Mac-only `pbcopy` command.
2015-08-17 22:53:45 -04:00
emulate -L zsh
clipcopy $1
a plugin (function) which copies the content of a file into the clipboard
2013-04-08 22:32:00 +02:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Page: 3294ms Template: 73ms
edge-auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API