Please, tell me, what should i do , to interpolate variable name in bash command line while I type it?
i.e. $A = ~/tmp/
in tmp folder I have tmp1 and tmp2 folders.
I type: cd $A<TAB>
and nothing happes.
if i put additional / and type cd $A/tmp1
, it will put additional space at the end cd $A/tmp1<space>
.
I want the following behavoir:
cd $A<TAB>
=====> cd ~/tmp/<without additional space>
Any suggestions?
You need to say:
Now saying:
(note the
/
before TAB) would present directories without adding space.From the manual:
Moreover, instead of setting a variable by saying:
or
say