简体   繁体   中英

How to extend bash-completion with the already exist completion in another file?

For example, there is bash-completion for rar on linux, I want to extend, make more completions for the same command - rar, maybe for my own filename extension, but I don't want to touch the already existing completion script, how to start it?

Thanks!

The base support is usally in /etc/bash_completion and details in the directory /etc/bash_completion.d

For more information, see:

An introduction to bash completion: part 1 for general knowledge
An introduction to bash completion: part 2 for details on scripts in /etc/bash_completion.d

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM