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

more than one login_script ( and bash complete alternative) #120

Closed lmarkov closed 8 years ago

lmarkov commented 8 years ago

Hello,

Can you tell is there a way to load several scripts with login_script in the conf file?

ghantoos commented 8 years ago

Unfortunately, I'm not sure there is. May be it would be easier to combine your multiple scripts into one wrapper script?

lmarkov commented 8 years ago

I have one custom script for autocomplete with command

complete -W

but it is not recognized at all. I try to manually use it but there is no result. It is in allowed commands in the configuration file.

ghantoos commented 8 years ago

This will only work for bash, the completion is completely re-implemented in lshell. This should explain why your command is not recognized.

lmarkov commented 7 years ago

Hello,

Could you suggest me alternative way to create custom tab autocomplete options for script?

For example I have python script called 'myscript' and it has to use options from argparse like --user --check etc.

Example:

bash> myscript [tab tab]
--user --check

Thank you in advance.