Skip to content

Commit

Permalink
Add argcomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxattax97 committed Jul 5, 2024
1 parent f09a2c6 commit bb54edf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
6 changes: 4 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb54edf

Please sign in to comment.