ghantoos / lshell

lshell is a shell coded in Python, that lets you restrict a user's environment to limited sets of commands, choose to enable/disable any command over SSH (e.g. SCP, SFTP, rsync, etc.), log user's commands, implement timing restriction, and more.
GNU General Public License v3.0
435 stars 112 forks source link

custom autocompletion #142

Open lmarkov opened 8 years ago

lmarkov commented 8 years ago

Hello,

Is there a way to create custom autocompletions for scripts. For example in bash:

complete -W "bounce all" clean-mailq

When I use clean-mailq with tab bounce and all shows as available options

:~# clean-mailq
all     bounce
ghantoos commented 8 years ago

Hi @lmarkov,

There is no such feature for the moment. If you have some time to code, I would be happy to review and merge it. :) Otherwise, I will try to look into it as soon as I have some time.