diff --git a/fedora/configure_fresh_system.sh b/fedora/configure_fresh_system.sh index 4f2a8bad..0c0d928b 100755 --- a/fedora/configure_fresh_system.sh +++ b/fedora/configure_fresh_system.sh @@ -43,8 +43,9 @@ sudo usermod -aG docker $USER # vscode mkdir -p ~/Downloads cd ~/Downloads -aria2c -c "https://go.microsoft.com/fwlink/?LinkID=760867" -sudo dnf -y install code*.rpm +sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc +sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo' +sudo dnf -y install --best --allowerasing code if [ "$(id -u)" != "0" ]; then code --install-extension cssho.vscode-svgviewer