|
|
Subscribe / Log in / New account

missing: dabbrev-expand

missing: dabbrev-expand

Posted May 9, 2006 19:17 UTC (Tue) by dann (guest, #11621)
Parent article: CLI Magic: Bash complete (Linux.com)

The main type of completion missing in bash is 'dabbrev-expand'. In tcsh (and emacs) it is bound to M-/
M-/ can complete the current word on the command lines with items from history. This is sometimes much faste than TAB completion if you have entered parts of the cmd line before...


to post comments

missing: dabbrev-expand

Posted May 9, 2006 22:02 UTC (Tue) by micampe (guest, #4384) [Link] (1 responses)

That looks like Ctrl-r in Bash (search backwards in history).

missing: dabbrev-expand

Posted May 10, 2006 0:07 UTC (Wed) by dann (guest, #11621) [Link]

No, it is not, Ctrl-r implements a completely different functionality
(and is available on all modern shells)

Here's the documentation for dabbrev-expand from the tcsh manual:

dabbrev-expand (M-/)
Expands the current word to the most recent preceding one for
which the current is a leading substring, wrapping around the his-
tory list (once) if necessary. Repeating dabbrev-expand without
any intervening typing changes to the next previous word etc.,
skipping identical matches much like history-search-backward does.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds