install and auto update vscode for non root linux users
Last active
November 22, 2021 13:59
-
-
Save arnoclr/9f4d98d21626712c775b248a69753ef3 to your computer and use it in GitHub Desktop.
Linux VSCode installer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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