edjx completion

Enables the proper load completion script.

Load completion scripts allow you to auto complete commands or arguments by typing partial commands or arguments, then pressing a dedidicated key to complete the phrase.

edjx completion <script>

Argument

script         Required. Select one of the scripts to use. bash | zsh | fish | powershell

Usage

EdjOS allows you to set the following load completions:

bash

root@edjx:~ # source <(edjx completion bash)

To load completions for each session:

root@edjx:~ # edjx completion bash > /etc/bash_completion.d/edjx

zsh

If shell completion is not already enabled in your environment you will need to enable it. You can execute the following once:

root@edjx:~ # echo "autoload -U compinit;
compinit" >> ~/.zshrc

To load completions for each session:

root@edjx:~ # edjx completion zsh > "${fpath[1]}/_edjx"

You will need to start a new shell for this setup to take effect.

fish

root@edjx:~ # edjx completion fish | source

To load completions for each session:

root@edjx:~ # edjx completion fish > ~/.config/fish/completions/yourprogram.fish

powershell

root@edjx:~ # edjx completion powershell