Two more tips: * Ctrl-a to go to beginning of line * Ctrl-e to go to end of line
Quick tip for developers who use OS X
31–40 of 406 posts
Re: Quick tip for developers who use OS X
#32Useful when copy/pasting things to share with other people in email and such: $ 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.
Re: Quick tip for developers who use OS X
#33Re: Quick tip for developers who use OS X
#34OK, so for vim users with zsh: bindkey -v Now be happy, hit and, use ^ and $ but also f t and also ,;. You can copy/paste with dd, Y, etc...
Fyi, bash also has vi-mode (set -o vi).
Re: Quick tip for developers who use OS X
#35Re: Quick tip for developers who use OS X
#36Re: Quick tip for developers who use OS X
#37Osx terminal uses almost all of the emacs movement keys by default. Ctrl-a and ctrl-e are useful but I find the meta movement keys to be the most helpful. (usually alt or ESC) Meta-f jump forward a word Meta-b jump backwards a word
It's not emacs, it's GNU Readline (or likely some BSD readline given apple and the GPL) http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html . The shortcuts also work in every text field in the OS.
Re: Quick tip for developers who use OS X
#38A new one for me I accidentally found the other day.. If you use Spotlight to find something and then want to see the file in Finder, Cmd+click the item in the Spotlight dropdown. Edited from Cmd+shift+click due to note in child comment :-)
Re: Quick tip for developers who use OS X
#39Re: Quick tip for developers who use OS X
#40/s