[clug] Use 'fc' to fix commands

Anthony David adavid at adavid.com.au
Fri Feb 21 12:26:12 MST 2014

On Thu, Feb 20, 2014 at 09:14:31PM +1100, Sam Couter wrote:
> Brendan Jurd <direvus at gmail.com> wrote:
> > Hi cluggers,
> > 
> > I only just recently stumbled across the wonderful 'fc' bash built-in
> > and wanted to pass on the tip in case I'm not the only one who didn't
> > know about it.
> If you're a vi/vim fan, 'set -o vi' and you get to use '/' to search
> through your command history and 'v' to edit a command in your default
> editor (vim, of course). Plus much friendlier vi keybindings instead of
> emacs keybindings.
> -- 
> Sam Couter | mailto:sam at couter.id.au

Back in my Solaris admin days, set -o vi in ksh was a great way to
buildvi "muscle memory". Once I discovered emacs, set -o emacs and I
never looked back.

> -- 
> linux mailing list
> linux at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux

More information about the linux mailing list