0

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.
Clément
  • 358

1 Answers1

0

I followed the answered shared on that post, and:

  1. Created ~/.inputrc and added to it:
set mark-directories on
set mark-symlinked-directories on
  1. Added export INPUTRC=~/.inputrc to my ~/.bashrc
  2. Restarted konsole.

And now it works :-)

Clément
  • 358