mstruebing / tldr

Golang command line client for tldr https://github.com/tldr-pages/tldr
MIT License
262 stars 24 forks source link

Make autocompletion autoinstallable #34

Closed mstruebing closed 6 years ago

mstruebing commented 6 years ago

I'm not sure if this is a good idea becuase that means to manipulate the users .zshrc or .bashrc.

If you have suggestions please let me know.

agnivade commented 6 years ago

It should be autoinstalled. But no need to manipulate .bashrc. You can directly place the file under /etc/bash_completion.d/. Its the same way tools like docker, git do auto completion.

But you have to figure out for macOS though. Should be the same, but I am not sure.

mstruebing commented 6 years ago

It should be already there: https://github.com/mstruebing/tldr/blob/master/Makefile#L16