Let s say I have these variables defined in my bashrc
:
i= cgi-bin/internal ;
e= cgi-bin/external ;
f= cgi-bin/foo ;
b= cgi-bin/bar ;
ad= cgi-bin/admin ;
#etc...
When I use the variable on the command line vim $i/edit_
TAB it will expand the variable and the input on the command line becomes vim /www/productX/subdomain_x/cgi-bin/internal/edit_
(respective to whatever site I m on) and then I TABTAB to get the possible completions.
That s fine, the functionality isn t the problem. It s just that it can get annoying to see the full path every time rather than just the value of the variable.
Is there a way to not expand the bash variables on the command line without compromising functionality?
Is it the bash completion that s doing this?
The desired outcome would be $i
not expanding to it s value (visually) or $i
expanding to a relative path rather than the full path.