Populating the CVS tab for modules on Linux

How can I get tab completion to select CVS modules under Linux (preferably using bash)?

For example, the tab "cvs co" + will display modules that I can check. I heard that this is easy to do with zsh, but still I was not able to get it to work.

Also, how can I list all available modules (or repositories?) Available in CVSROOT?

+3
source share
3 answers

In fact, as you guys said, Ubuntu has built support to populate the CVS module tabs.

The only thing that was missing for me was to manually add the mapping of the module name and its alias to the CVSROOT / modules file for a supported shutdown.

0

Bash . cvs, 100%, . .

+2

I already have this behavior, I think (I don't have a reliable CVS repository to check) in Ubuntu 8.04.

The cvs handler has a lot of code in the / etc / bash _completion file, you might want to take a look at this.

And the command to list the modules on CVSRoot cvs -d "$the_cvsroot" checkout -c

+2
source

Source: https://habr.com/ru/post/1698411/


All Articles