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
ceb8e7d3040113938c60b23b9466584cb66cb15d
ohmyzsh/plugins/copydir/copydir.plugin.zsh

6 lines
149 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 pathname of the current directory to the system or X Windows clipboard
a plugin (function) which copies the current directory into the clipboard
2013-04-08 22:11:22 +02:00
function copydir {
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
print -n $PWD | clipcopy
clip*: add xsel support
2015-10-04 03:42:24 -04:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 159ms Template: 8ms
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