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

5 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 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
a plugin (function) which copies the current directory into the clipboard
2013-04-08 22:11:22 +02:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 65ms Template: 2ms
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