Skip to content

Commit

Permalink
Merge pull request #479 from manala/lazy.kubernetes/remove-sops-compl…
Browse files Browse the repository at this point in the history
…etion

[Lazy - Kubernetes] Remove sops completion
  • Loading branch information
nervo authored Dec 11, 2024
2 parents 8dff4f8 + 3609def commit 7f7ecb6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
23 changes: 1 addition & 22 deletions lazy.kubernetes/.manala/docker/Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -320,28 +320,7 @@ RUN \
RUN \
curl -sSLf "https://github.com/mozilla/sops/releases/download/v{{ $sops.version }}/sops-v{{ $sops.version }}.linux.{{ include "arch_map" (dict "amd64" "amd64" "arm64" "arm64") }}" \
--output /usr/local/bin/sops \
&& chmod +x /usr/local/bin/sops \
# Oh My Zsh plugin
# See: https://github.com/ohmyzsh/ohmyzsh/pull/12757
&& mkdir /usr/local/share/oh-my-zsh/custom/plugins/sops \
&& printf "\
_sops() {\n\
local -a opts\n\
local cur\n\
cur=\${words[-1]}\n\
if [[ \"\$cur\" == \"-\"* ]]; then\n\
opts=(\"\${(@f)\$(\${words[@]:0:#words[@]-1} \${cur} --generate-shell-completion)}\")\n\
else\n\
opts=(\"\${(@f)\$(\${words[@]:0:#words[@]-1} --generate-shell-completion)}\")\n\
fi\n\
if [[ \"\${opts[1]}\" != \"\" ]]; then\n\
_describe 'values' opts\n\
else\n\
_files\n\
fi\n\
}\n\
compdef _sops sops\n\
" > /usr/local/share/oh-my-zsh/custom/plugins/sops/sops.plugin.zsh
&& chmod +x /usr/local/bin/sops

{{ end -}}

Expand Down
3 changes: 0 additions & 3 deletions lazy.kubernetes/.manala/etc/zsh/.zshrc.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ plugins=(
{{- if .Vars.system.scw.version }}
scw
{{- end }}
{{- if .Vars.system.sops.version }}
sops
{{- end }}
{{- if .Vars.system.aws.version }}
aws
{{- end }}
Expand Down

0 comments on commit 7f7ecb6

Please sign in to comment.