dotly icon indicating copy to clipboard operation
dotly copied to clipboard

The autocompletion of the dot command does not work in Ubuntu 18.04+

Open borjapazr opened this issue 4 years ago • 4 comments

Dot command autocompletion does not work in Ubuntu. It has been tested on Ubuntu 18.04 and Ubuntu 20.04.

In Ubuntu it is necessary to deactivate the compinit at a global level, since it delays the startup time of the shell.

Possible solutions:

  • My own .dotfiles for Ubuntu systems: https://github.com/borjapazr/dotfiles/blob/master/shell/zsh/.zshenv
  • The same solution on a Gist: https://gist.github.com/ctechols/ca1035271ad134841284#gistcomment-3401477

One question. Currently the autocompletions of the dot command are loaded by launching the zsh reload_completions command. It is a one time configuration, right? You could implement a mechanism by which this is done every X time, as the following snnipet shows: https://gist.github.com/ctechols/ca1035271ad134841284

PD: If you need to test in Ubuntu, I can do it without any problem, since I work daily in this OS.

borjapazr avatar Dec 06 '20 20:12 borjapazr

i have the same problem with ubuntu 20

Luigisa avatar Jun 08 '21 09:06 Luigisa

Which shell?

Any output?

gtrabanco avatar Jun 08 '21 11:06 gtrabanco

On ubuntu 20.04 default terminal. Under zsh: Dot command autocompletion does not work

Under bash is diferent: Dot command autocompletion does not work i see this output when i press tab:

{â—‚} dot ^[[0 ^[[01;34mdotfiles^[[0m ^[[01;34mmac^[[0m ^[[01;34mself^[[0m ^[[01;34msymlinks^[[0m
^[[01;34mgit^[[0m ^[[01;34mpackage^[[0m ^[[01;34mshell^[[0m ^[[0m^[[01;34msurprise^[[0m

Luigisa avatar Jun 08 '21 12:06 Luigisa

2021-06-08_15-49

Luigisa avatar Jun 08 '21 13:06 Luigisa