Logo
Explore Help
Sign In
gaspersic/ohmyzsh
1
0
Fork 0
You've already forked ohmyzsh
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
0f6836701d82a2ee024153c7f781bb72c2e9a8ac
ohmyzsh/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 Version: 1.24.5 Page: 152ms Template: 4ms
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