0

I am busy with a task from the terminal which is that laborious that it would be of value to tweak something with bash autocomplete.

So a standard Debian package is xournal which I don't have installed (anymore)

What I do have installed is xournal++ which is launched with 'xournalpp'

The terminal does not realise that and tab does not complete all the way.

Does anyone know how to fix this?

cardamom
  • 528
  • 1
  • 5
  • 22

2 Answers2

2

Generally the behaviour is not of the terminal application as such, but of the shell running within it and more precisely of the line editing library the shell is using (likely libreadline or libedit).

At least for GNU Readline the default behaviour is not to display multiple options when the completion is ambiguous. You'll either need to hit the key that causes completion twice, or add

set show-all-if-ambiguous on 

to your ~/.inputrc which is read by libreadline at initialisation (it can also be re-read at runtime, by default it is assignet to Ctrl+x Ctrl+r).

peterph
  • 30,520
  • 2
  • 69
  • 75
1

Using the link in the comments from @steeldriver

I did this and it was fixed:

$ which xournal-thumbnailer 
/usr/bin/xournal-thumbnailer
$ sudo mv /usr/bin/xournal-thumbnailer /usr/bin/xournalpp-thumbnailer
cardamom
  • 528
  • 1
  • 5
  • 22