Pre-install vscode extensions

This commit is contained in:
Manuel Thalmann 2024-03-25 19:54:26 +01:00
parent c170990a6d
commit 8239b01fd6
4 changed files with 23 additions and 13 deletions

View file

@ -215,19 +215,7 @@ yay --noconfirm -Syu \
visual-studio-code-insiders-bin \ visual-studio-code-insiders-bin \
; ;
for editor_bin in \ . "../Common/Config/vscode/install.sh";
codium \
codium-insiders \
code \
code-insiders
do
for extension in \
zokugun.sync-settings \
zokugun.vsix-manager
do
$editor_bin --install-extension "$extension";
done;
done;
{ {
echo "--touch-events"; echo "--touch-events";

View file

@ -0,0 +1,17 @@
#!/bin/bash
for editor_bin in \
codium \
codium-insiders \
code \
code-insiders
do
if command -v "$editor_bin" > /dev/null 2>&1
then
for extension in \
zokugun.sync-settings \
zokugun.vsix-manager
do
$editor_bin --install-extension "$extension";
done;
fi;
done;

View file

@ -74,6 +74,8 @@ function Restore-GenericApps([Context] $context) {
choco install -y --params "/NoDesktopIcon /AssociateWithFiles" vscodium; choco install -y --params "/NoDesktopIcon /AssociateWithFiles" vscodium;
winget install --scope machine --accept-source-agreements --accept-package-agreements -e --id VSCodium.VSCodium.Insiders --override '/VerySilent /MergeTasks="!runCode,quicklaunchicon,addcontextmenufiles,addcontextmenufolders,associatewithfiles,addtopath"'; winget install --scope machine --accept-source-agreements --accept-package-agreements -e --id VSCodium.VSCodium.Insiders --override '/VerySilent /MergeTasks="!runCode,quicklaunchicon,addcontextmenufiles,addcontextmenufolders,associatewithfiles,addtopath"';
. "$PSScriptRoot/../Config/vscode/Install.ps1";
choco install -y ` choco install -y `
gh ` gh `
github-desktop ` github-desktop `

View file

@ -0,0 +1,3 @@
#!/bin/pwsh
. "$PSScriptRoot/../../Scripts/BashScript.ps1";
Start-BashScript "bash `"$PSScriptRoot/../../../Common/Config/vscode/install.sh`"";