diff options
author | Marko Bauhardt <marko.bauhardt@googlemail.com> | 2013-04-08 22:11:22 +0200 |
---|---|---|
committer | Marko Bauhardt <marko.bauhardt@googlemail.com> | 2013-04-08 22:11:22 +0200 |
commit | 9c6b88607e8f2898ba3bc83fdf5cce616c6aec83 (patch) | |
tree | dea1ab6793fd0fcc46df00995a869ab3d7fbf70a /plugins/copydir/copydir.plugin.zsh | |
parent | 0198a12953ab92f5cc07ae464c34e3e37ab34d33 (diff) | |
download | zsh-9c6b88607e8f2898ba3bc83fdf5cce616c6aec83.tar.gz zsh-9c6b88607e8f2898ba3bc83fdf5cce616c6aec83.tar.bz2 zsh-9c6b88607e8f2898ba3bc83fdf5cce616c6aec83.zip |
a plugin (function) which copies the current directory into the clipboard
Diffstat (limited to 'plugins/copydir/copydir.plugin.zsh')
-rw-r--r-- | plugins/copydir/copydir.plugin.zsh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/copydir/copydir.plugin.zsh b/plugins/copydir/copydir.plugin.zsh new file mode 100644 index 000000000..37bb5e086 --- /dev/null +++ b/plugins/copydir/copydir.plugin.zsh @@ -0,0 +1,3 @@ +function copydir { + pwd | tr -d "\r\n" | pbcopy +}
\ No newline at end of file |