diff --git a/.zshrc b/.zshrc index 297c410..7de5068 100644 --- a/.zshrc +++ b/.zshrc @@ -316,6 +316,12 @@ zshrc_setup_completion() { gh completion -s zsh > "${HOME}/.zsh_completions/_gh" fi fi + + if [[ -x "$(command -v activate-global-python-argcomplete)" ]]; then + if [[ ! -s "${HOME}/.zsh_completions/_python-argcomplete" ]]; then + activate-global-python-argcomplete --dest "${HOME}/.zsh_completions/" + fi + fi } zshrc_autoload() { diff --git a/install.sh b/install.sh index 321db41..7cd81c1 100755 --- a/install.sh +++ b/install.sh @@ -331,26 +331,28 @@ case "$response" in pipx install ansible-core pipx install ansible-lint pipx install ansible-navigator + pipx install argcomplete pipx install flake8 pipx install flake8-pyproject pipx install isort pipx install molecule pipx install neovim + pipx install pre-commit pipx install shell-gpt pipx install thefuck pipx install tmuxp - pipx install pre-commit elif [[ -x "$(command -v pip3)" ]]; then pip3 install --user \ ansible \ ansible-core \ ansible-lint \ + argcomplete \ flake8 \ isort \ neovim \ shell-gpt \ thefuck \ - tmuxp \ + tmuxp else echo "You need to install pipx / pip3" fi