Logo
Explore Help
Register Sign In
mirrors/ohmyzsh
1
0
Fork 0
You've already forked ohmyzsh
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2025-06-03 22:04:31 +08:00
Code Issues Projects Releases Wiki Activity
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.23.8 Page: 876ms Template: 5ms
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