$variable broken with tab completion into \$variable
by disk_bearing from LinuxQuestions.org on (#6HSJW)
paths are fictionalized but accurate
in my .bashrc I have environment variables such as:
Code:shortcut="/home/me/startdir/"In Vi I can do the following and tab completion works perfectly.
Code::e $shortcut/In bash when I press tab,
Code:cd $shortcut/becomes
Code:cd \$shortcut/subdirand the slash added before $ breaks the command.
- Is there a way to prevent this?
- Is there a better way to approach faster navigation?
Thank you!
in my .bashrc I have environment variables such as:
Code:shortcut="/home/me/startdir/"In Vi I can do the following and tab completion works perfectly.
Code::e $shortcut/In bash when I press tab,
Code:cd $shortcut/becomes
Code:cd \$shortcut/subdirand the slash added before $ breaks the command.
- Is there a way to prevent this?
- Is there a better way to approach faster navigation?
Thank you!