Update 8 files

- /home/dot_var/app/com.visualstudio.code/config/symlink_Code
- /home/dot_var/app/com.visualstudio.code/config/private_Code/symlink_User
- /home/.chezmoiremove
- /home/private_dot_config/private_Code/User/extensions.json
- /home/.chezmoiscripts/universal/run_onchange_after_26-vscode-extensions.tmpl
- /home/Library/Application Support/VSCodium/symlink_User
- /home/Library/Application Support/Code/symlink_User
- /software.yml
This commit is contained in:
Brian Zalewski 2023-01-24 22:50:28 +00:00
parent 0a294d8501
commit 0cd37a6183
7 changed files with 74 additions and 70 deletions

View file

@ -35,6 +35,7 @@ Brewfile
.tmux.conf.local
.v8flags*
.vagrant.d/
.var/app/com.visualstudio.code/config/Code/User
.viminfo
.volta/
.vscode-oss/

View file

@ -0,0 +1,39 @@
{{- if (eq .host.distro.family "linux") -}}
#!/usr/bin/env bash
{{ includeTemplate "universal/profile" }}
{{ includeTemplate "universal/logg" }}
### Install Visual Studio Code extensions
if command -v code > /dev/null; then
EXTENSIONS="$(code --list-extensions)"
jq -r '.recommendations[]' "${XDG_CONFIG_HOME:-$HOME/.config}/Code/User/extensions.json" | while read EXTENSION; do
if ! echo "$EXTENSIONS" | grep -iF "$EXTENSION" > /dev/null; then
logg info 'Installing Visual Studio Code extension `'"$EXTENSION"'`'
code --install-extension "$EXTENSION"
logg success 'Installed `'"$EXTENSION"'`'
else
logg info '`'"$EXTENSION"'` already installed'
fi
done
else
logg warn '`code` executable not available'
fi
### Install VSCodium extensions
if command -v codium > /dev/null; then
EXTENSIONS="$(codium --list-extensions)"
jq -r '.recommendations[]' "${XDG_CONFIG_HOME:-$HOME/.config}/Code/User/extensions.json" | while read EXTENSION; do
if ! echo "$EXTENSIONS" | grep -iF "$EXTENSION" > /dev/null; then
logg info 'Installing VSCodium extension `'"$EXTENSION"'`'
codium --install-extension "$EXTENSION"
logg success 'Installed `'"$EXTENSION"'`'
else
logg info '`'"$EXTENSION"'` already installed'
fi
done
else
logg warn '`codium` executable not available'
fi
{{ end -}}

View file

@ -0,0 +1,3 @@
{{- if eq .host.distro.family "darwin" -}}
{{ .chezmoi.homeDir }}/.config/Code/User
{{- end -}}

View file

@ -0,0 +1,3 @@
{{- if eq .host.distro.family "darwin" -}}
{{ .chezmoi.homeDir }}/.config/Code/User
{{- end -}}

View file

@ -1,3 +1,3 @@
{{- if eq .host.distro.family "linux" -}}
{{ .chezmoi.homeDir }}/.config/Code
{{ .chezmoi.homeDir }}/.config/Code/User
{{- end -}}

View file

@ -1,15 +1,25 @@
{
"recommendations": [
"Angular.ng-template",
"attilabuti.vscode-mjml",
"bierner.markdown-emoji",
"ChakrounAnas.turbo-console-log",
"ChFlick.firecode",
"chrmarti.regex",
"cweijan.vscode-mysql-client2",
"DavidAnson.vscode-markdownlint",
"dbaeumer.vscode-eslint",
"denoland.vscode-deno",
"eamodio.gitlens",
"EditorConfig.EditorConfig",
"esbenp.prettier-vscode",
"ericadamski.carbon-now-sh",
"esbenp.prettier-vscode",
"firsttris.vscode-jest-runner",
"formulahendry.auto-rename-tag",
"formulahendry.code-runner",
"GitHub.vscode-pull-request-github",
"GitLab.gitlab-workflow",
"golang.Go",
"GoogleCloudTools.cloudcode",
"HashiCorp.terraform",
"hediet.vscode-drawio",
@ -18,26 +28,40 @@
"mads-hartmann.bash-ide-vscode",
"ms-azuretools.vscode-docker",
"ms-kubernetes-tools.vscode-kubernetes-tools",
"ms-python.python",
"ms-vscode-remote.remote-containers",
"ms-vscode-remote.remote-ssh",
"ms-vscode-remote.remote-wsl",
"ms-vscode.PowerShell",
"MS-vsliveshare.vsliveshare",
"MS-vsliveshare.vsliveshare-audio",
"MS-vsliveshare.vsliveshare",
"njpwerner.autodocstring",
"nrwl.angular-console",
"philnash.ngrok-for-vscode",
"PKief.material-icon-theme",
"pranaygp.vscode-css-peek",
"quicktype.quicktype",
"rbbit.typescript-hero",
"redhat.ansible",
"redhat.vscode-yaml",
"richie5um2.vscode-sort-json",
"Rubymaniac.vscode-paste-and-indent",
"salbert.comment-ts",
"shd101wyy.markdown-preview-enhanced",
"softwaredotcom.swdc-vscode",
"steoates.autoimport",
"stylelint.vscode-stylelint",
"timonwong.shellcheck",
"toba.vsfire",
"tyriar.sort-lines",
"usernamehw.errorlens",
"valentjn.vscode-ltex",
"VisualStudioExptTeam.vscodeintellicode",
"vsciot-vscode.vscode-arduino",
"vsls-contrib.codetour",
"vsls-contrib.gistfs",
"wayou.vscode-todo-highlight"
"wayou.vscode-todo-highlight",
"wix.vscode-import-cost",
"yatki.vscode-surround"
]
}

View file

@ -8629,69 +8629,3 @@ softwarePlugins:
- vagrant-share
- vagrant-vbguest
- vagrant-vmware-desktop
vscodium:
cmd: bash -c 'if [ ! -n "$(find ~/.vscode/extensions -mindepth 1 -maxdepth 1 -type d -name "$(echo {PLUGIN} | tr "[:upper:]" "[:lower:]")*" -print -quit)" ]; then codium --install-extension "$(echo {PLUGIN} | tr "[:upper:]" "[:lower:]")"; fi'
plugins:
- Angular.ng-template
- attilabuti.vscode-mjml
- bierner.markdown-emoji
- ChakrounAnas.turbo-console-log
- ChFlick.firecode
- chrmarti.regex
- cweijan.vscode-mysql-client2
- DavidAnson.vscode-markdownlint
- dbaeumer.vscode-eslint
- denoland.vscode-deno
- eamodio.gitlens
- EditorConfig.EditorConfig
- ericadamski.carbon-now-sh
- esbenp.prettier-vscode
- firsttris.vscode-jest-runner
- formulahendry.auto-rename-tag
- formulahendry.code-runner
- GitHub.vscode-pull-request-github
- GitLab.gitlab-workflow
- golang.Go
- GoogleCloudTools.cloudcode
- HashiCorp.terraform
- hediet.vscode-drawio
- IBM.output-colorizer
- Kelvin.vscode-sshfs
- mads-hartmann.bash-ide-vscode
- ms-azuretools.vscode-docker
- ms-kubernetes-tools.vscode-kubernetes-tools
- ms-python.python
- ms-vscode-remote.remote-containers
- ms-vscode-remote.remote-ssh
- ms-vscode-remote.remote-wsl
- ms-vscode.PowerShell
- MS-vsliveshare.vsliveshare
- MS-vsliveshare.vsliveshare-audio
- njpwerner.autodocstring
- nrwl.angular-console
- philnash.ngrok-for-vscode
- PKief.material-icon-theme
- pranaygp.vscode-css-peek
- quicktype.quicktype
- rbbit.typescript-hero
- redhat.ansible
- redhat.vscode-yaml
- richie5um2.vscode-sort-json
- Rubymaniac.vscode-paste-and-indent
- salbert.comment-ts
- shd101wyy.markdown-preview-enhanced
- softwaredotcom.swdc-vscode
- steoates.autoimport
- stylelint.vscode-stylelint
- timonwong.shellcheck
- toba.vsfire
- tyriar.sort-lines
- usernamehw.errorlens
- valentjn.vscode-ltex
- VisualStudioExptTeam.vscodeintellicode
- vsciot-vscode.vscode-arduino
- vsls-contrib.codetour
- vsls-contrib.gistfs
- wayou.vscode-todo-highlight
- wix.vscode-import-cost
- yatki.vscode-surround