From bb54edf0ee181fb7dc96b9957e7401a2902ab0d3 Mon Sep 17 00:00:00 2001 From: Max O'Cull Date: Thu, 4 Jul 2024 20:00:32 -0400 Subject: [PATCH] Add argcomplete --- .zshrc | 6 ++++++ install.sh | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) 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