[clug] Use 'fc' to fix commands

Sam Couter sam at couter.id.au
Thu Feb 20 03:14:31 MST 2014


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.samba.org/pipermail/linux/attachments/20140220/97f2a7c9/attachment.pgp>


More information about the linux mailing list