$ pbpaste | pbcopy
takes the current contents of the copy/paste buffer and removes color/font/background color rich formatting and puts just plain text back into the paste buffer.And of course pbcopy and pbpaste are also very useful on their own.
$ pbpaste | pbcopy
takes the current contents of the copy/paste buffer and removes color/font/background color rich formatting and puts just plain text back into the paste buffer.And of course pbcopy and pbpaste are also very useful on their own.
Just make a new shortcut under the All Applications group named exactly the same as the one you want to replace. http://i.imgur.com/JqBncTy.png
I've also had to add an entry for "Paste as Quotation" because that's Mail's default use of Command-V.
I've used the same trick on occasion when copying text from web pages into Gmail. When you paste such text into a Gmail draft, Gmail tries to duplicate the format of the original, which is often not what you want. pbpaste | pbcopy solves the problem nicely.
Edit: But Shift-Option-Cmd-V is easier. Thanks, Janteh!
Then you need to add the following to .tmux.conf
set-option -g default-command "reattach-to-user-namespace -l zsh"
There's a good writeup on what and why here, https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard/blob/...pbpaste |sed 's/FIND/REPLACE/g' | pbcopy
Maybe make this into a script you can run from alfred. ;)
Also if you want to have access to pbcopy remotely, try this: