Skip to content

Instantly share code, notes, and snippets.

@gusbemacbe
Created December 13, 2023 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gusbemacbe/10f0dc21d6bbdbfed67ef6eb006a9b09 to your computer and use it in GitHub Desktop.
Save gusbemacbe/10f0dc21d6bbdbfed67ef6eb006a9b09 to your computer and use it in GitHub Desktop.
Downloading and installing automatically the new version of VSCode
#!/usr/bin/env bash
# Using wget to download VSCode archive file from the direct URL
wget -O vscode.tar.gz 'https://code.visualstudio.com/sha/download?build=stable&os=linux-x64'
# Create a directory to extract the file
mkdir -p vscode
# Extract the file
tar -xvf vscode.tar.gz -C vscode
# Rename the extracted directory
mv vscode/VSCode-linux-x64 "vscode/Visual Studio Code"
# # Removing the old directory
rm -rvf "$HOME/Applications/Binaries/Visual Studio Code"
## Moving the VScode directory...
mv "vscode/Visual Studio Code" "$HOME/Applications/Binaries/"
## Removing the files
rm -rv vscode.tar.gz
rm -rv vscode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment