0

On an older installation I had it somehow configured, so that I if I had an autocomplete list that I could bring up with tab, the first item was highlighted and I could use my arrows to navigate the list and confirm with enter. I don't remember how I set this up, any idea how to do this?

Hakaishin
  • 135
  • 1
  • 6

2 Answers2

1

I think you are using fish instead of bash in this older installation:

#apt-get install fish  
#fish

(yes fish is installable from debian repository in jessie, i dont know if it is on debian 9)

Then you can change your default shell in /etc/passwd from bash to fish.

When installed, it has a very cool manual on debian in file:///usr/share/doc/fish/index.html

You will be able to configure it via a very cool web interface, by using this command:

 fish_config
1

That might have been the zsh shell. In zsh, that's the behaviour you obtain if you run (or typically, add to your ~/.zshrc):

zstyle ':completion:*' menu select=2

(where that selection style is enabled as soon as there are at least 2 entries to choose from).

There are a lot more completion tuning you can do with zstyle commands. Or you can use the compinstall function for a menu-based interface that does the hard work for you.

autoload compinstall && compinstall