Enabling bash tab compilation
Bash tab compilation is a feature in the command-line environment. This will display a list of autocomplete suggestions by pressing the Tab key. Zappa has many commands, and if you register the Zappa
module with the Python argcomplete
module, the zappa
command will support the tab compilation feature.
In order to acquire this feature, you need to install the argcomplete
(https://github.com/kislyuk/argcomplete) module, either on your system or in the virtual environment:
- System-level installation:
$ sudo apt update $ sudo apt install python-argcomplete
- Virtual environment installation:
$ pip install argcomplete
Once you configure the module, then you need to activate Python's argcomplete
module at a global level. The following is the command to activate the global Python argcomplete
module:
$ activate-global-python-argcomplete
In order to register the Zappa
module with argcomplete
, you need to add the following line in your ~/.bashrc
file:
eval "$(register-python...