Linux.com

bash arg completion

Posted by: Anonymous Coward on September 19, 2005 05:48 PM
bash can complete args from your history
using M-TAB (dynamic-complete-history)
or alt-TAB

for example, type
$ echo fjdslkfjdslk
then try
$ printf fj M-TAB

if this doesn't work try putting
M-TAB: dynamic-complete-history
in your<nobr> <wbr></nobr>.inputrc

bash can also complete variable names
echo $P TAB TAB

#

Return to CLI Magic: CDargs