get_completion_script#

barecat.get_completion_script(shell='bash')[source]#

Return the path to the shell completion script.

Parameters:

shell – ‘bash’ or ‘zsh’

Returns:

Path to the completion script file.

Example

# For bash, add to ~/.bashrc: source $(python -c “import barecat; print(barecat.get_completion_script(‘bash’))”)

# For zsh, add to ~/.zshrc: source $(python -c “import barecat; print(barecat.get_completion_script(‘zsh’))”)