diff --git a/home/.chezmoiexternal.yaml.tmpl b/home/.chezmoiexternal.yaml.tmpl index 90d1c34..6ea7bc3 100644 --- a/home/.chezmoiexternal.yaml.tmpl +++ b/home/.chezmoiexternal.yaml.tmpl @@ -13,16 +13,14 @@ clone: args: [ "--depth", "1" ] -{{ $direnv_version := (gitHubLatestRelease "direnv/direnv").TagName -}} .local/bin/direnv: type: file - url: https://github.com/direnv/direnv/releases/download/{{ $direnv_version }}/direnv.linux-amd64 + url: {{ gitHubLatestReleaseAssetURL "direnv/direnv" "direnv.linux-amd64" | quote }} executable: true -{{ $yq_version := (gitHubLatestRelease "mikefarah/yq").TagName -}} .local/bin/yq: type: archive-file - url: https://github.com/mikefarah/yq/releases/download/{{ $yq_version }}/yq_linux_amd64.tar.gz + url: {{ gitHubLatestReleaseAssetURL "mikefarah/yq" "yq_linux_amd64.tar.gz" | quote }} path: ./yq_linux_amd64 {{ $mkcert_version := (gitHubLatestRelease "FiloSottile/mkcert").TagName -}} @@ -31,10 +29,9 @@ url: https://github.com/FiloSottile/mkcert/releases/download/{{ $mkcert_version }}/mkcert-{{ $mkcert_version }}-linux-amd64 executable: true -{{ $pnpm_version := (gitHubLatestRelease "pnpm/pnpm").TagName -}} .local/bin/pnpm: type: file - url: https://github.com/pnpm/pnpm/releases/download/{{ $pnpm_version }}/pnpm-linux-x64 + url: {{ gitHubLatestReleaseAssetURL "pnpm/pnpm" "pnpm-linux-x64" | quote }} executable: true {{ if .work -}} diff --git a/home/private_dot_config/private_zsh/zsh.d/install.zsh b/home/private_dot_config/private_zsh/zsh.d/install.zsh index b54c756..cf0fed5 100644 --- a/home/private_dot_config/private_zsh/zsh.d/install.zsh +++ b/home/private_dot_config/private_zsh/zsh.d/install.zsh @@ -20,6 +20,7 @@ install-vs-code() ln --symbolic --force "$code_dir/resources/completions/zsh/_code" "$ZDOTDIR/completions/_code" code --version + code --update-extensions } install-vs-code-insiders() @@ -41,6 +42,7 @@ install-vs-code-insiders() ln --symbolic --force "$code_dir/resources/completions/zsh/_code-insiders" "$ZDOTDIR/completions/_code-insiders" code-insiders --version + code-insiders --update-extensions } # https://k3d.io/