The Pasteboard & the Command line (Mac OS X)
The tools, pbcopy
and pbpaste
, let you utilise the Mac OS X pasteboard from the command line.
Using it is straightforward:
$ pwd | pbcopy
pipes the current working directory into the pasteboard, meaning you can just paste it anywhere by ie. using cmd+v
$ pbpaste
also does what you would expect, namely pasting the current contents of the pasteboard to the command line.
...there we go, copy & paste just got nerdyfied :D!
Written by Thomas Kober
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Related Tags
#shell
#terminal
#osx
#macosx
#command line
#clipboard
#os x
#pbcopy
#pbpaste
#mac os x
#copy
#macos
#mac os
#bash
#pasteboard
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#