Skip to content

Instantly share code, notes, and snippets.

@mbauhardt
Created March 11, 2013 19:34
Show Gist options
  • Select an option

  • Save mbauhardt/5136994 to your computer and use it in GitHub Desktop.

Select an option

Save mbauhardt/5136994 to your computer and use it in GitHub Desktop.
A plugin for ohmyzsh which copies the current directory into the clipboard. _pbcopy_ is required.
function copydir {
pwd | tr -d "\r\n" | pbcopy
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment