Only put symlinks to vscode exts in skel

This commit is contained in:
Jan Schär 2024-05-11 11:50:52 +02:00
parent b778340a5f
commit 02f0b6f2cb
1 changed files with 11 additions and 0 deletions

View File

@ -21,6 +21,17 @@ for ext in $VSCODE_EXTENSIONS; do
done done
chown -R root:root /etc/skel/.vscode chown -R root:root /etc/skel/.vscode
rm -rf /tmp/vsc.tmp rm -rf /tmp/vsc.tmp
# Move extensions elsewhere and install symlinks in /etc/skel.
# This speeds up user creation and saves space.
mkdir /usr/local/lib/vscode-extensions
pushd /etc/skel/.vscode/extensions
for ext in *; do
if [ -d "$ext" ]; then
mv "$ext" /usr/local/lib/vscode-extensions/
ln -s "/usr/local/lib/vscode-extensions/$ext" "$ext"
fi
done
popd
# Enable codeblocks template. # Enable codeblocks template.
sed -i 's|// project wizards|RegisterWizard(wizProject, _T("soi"), _T("A SOI task"), _T("Console"));|' /usr/share/codeblocks/templates/wizard/config.script sed -i 's|// project wizards|RegisterWizard(wizProject, _T("soi"), _T("A SOI task"), _T("Console"));|' /usr/share/codeblocks/templates/wizard/config.script