Skip to content

Commit

Permalink
Ubuntu 22.04 and 24.04 have different commands for `register-python-a…
Browse files Browse the repository at this point in the history
…rgcomplete`
  • Loading branch information
joshuaspence committed May 28, 2024
1 parent e749f8a commit 062d0f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dot_bash_completion.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ if command_exists latticectl; then
fi

if command_exists pipx; then
source <(register-python-argcomplete3 pipx)
{{- if lookPath "register-python-argcomplete3" }}
source <(register-python-argcomplete pipx)
{{- else }}
source <(register-python-argcomplete pipx)
{{- end }}
fi

if command_exists step; then
Expand Down

0 comments on commit 062d0f5

Please sign in to comment.