Original Question
When cding into a folder through a link, auto-completes does not add the last / unless I hit tab twice. How to change that behavior?
MWE:
cd /tmp/ && mkdir test && cd test && mkdir folder && ln -s folder link
Then do cd lin and TAB: it auto-completes to link and not to link/ (but hitting TAB one more time auto-completes to link/).
Clarification
- I want auto-completion to add the
/before I want to move into another folder inside that folder. - When
cding into a folder that is not a link, the/is automatically added. - There are no files with the same name as the link in that folder.
- Everything takes place in Konsole, which runs
/bin/bash.
cd /tmpalready does the job. – user unknown May 09 '23 at 02:18link/test2/. – Clément May 09 '23 at 02:25zsh?bash? Something else? – Philippos May 09 '23 at 05:37/bin/bash. – Clément May 09 '23 at 13:33