Skip to content

Instantly share code, notes, and snippets.

@arnoclr
Last active November 22, 2021 13:59
Show Gist options
  • Save arnoclr/9f4d98d21626712c775b248a69753ef3 to your computer and use it in GitHub Desktop.
Save arnoclr/9f4d98d21626712c775b248a69753ef3 to your computer and use it in GitHub Desktop.
Linux VSCode installer

VSCode installer

install and auto update vscode for non root linux users

start() {
~/local/src/VSCode-linux-x64/code --no-sandbox
}
run () {
start
update
}
update () {
wget -O /tmp/vscode.tar.gz 'https://code.visualstudio.com/sha/download?build=stable&os=linux-x64'
tar -xzf /tmp/vscode.tar.gz --directory ~/local/src/
rm /tmp/vscode.tar.gz
}
install () {
update
start
}
run || install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment