Wednesday, March 30, 2011

MacOS: bash command line editing

This will let you use emacs or vi capabilities in the command line

set -o vi # for vi mode
set -o emacs # for emacs mode

Emacs command line editing cheat-sheet:

1 comment:

  1. This isn't just MacOS, nor just bash - it is posix standard, so will work with bash, ksh, and should work with posix-compliant sh shells anywhere (mac, windows, e.g. u-win, cygwin, or win-bash), all sorts of flavors of linux.

    That is - this is pretty standard.


Subscribe via email

Enter your email address:

Delivered by FeedBurner