Skip to content

Commit

Permalink
[Lazy] Group complete whenever possible
Browse files Browse the repository at this point in the history
  • Loading branch information
nervo committed Feb 7, 2024
1 parent 676deb9 commit c2df6bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 3 additions & 5 deletions lazy.ansible/.manala/docker/Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,10 @@ RUN \
curl -sSL "https://releases.hashicorp.com/terraform/{{ $terraform.version }}/terraform_{{ $terraform.version }}_linux_{{ include "arch_map" (dict "amd64" "amd64" "arm64" "arm64") }}.zip" \
| bsdtar -xvf - -C /usr/local/bin \
&& chmod +x /usr/local/bin/terraform \
# Bash completion
&& echo "complete -C /usr/local/bin/terraform terraform" > /etc/bash_completion.d/terraform \
# Bash aliases
&& printf "alias tf='terraform'\n\
complete -C /usr/local/bin/terraform tf\n\
" > /etc/profile.d/terraform.sh
&& echo "alias tf='terraform'" > /etc/profile.d/terraform.sh \
# Bash completion
&& echo "complete -C /usr/local/bin/terraform terraform tf" > /etc/bash_completion.d/terraform

{{ end -}}

Expand Down
3 changes: 1 addition & 2 deletions lazy.kubernetes/.manala/docker/Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,8 @@ RUN \
# Bash aliases
&& printf "\
alias hf='helmfile'\n\
complete -F __start_helmfile hf\n\
alias hfi='helmfile --interactive'\n\
complete -F __start_helmfile hfi\n\
complete -F __start_helmfile hf hfi\n\
" > /etc/profile.d/helmfile.sh

{{ end -}}
Expand Down

0 comments on commit c2df6bf

Please sign in to comment.