Created
July 26, 2017 13:04
-
-
Save lihongjie0209/0d18e272e7076d364abfdbaa46f77b6f to your computer and use it in GitHub Desktop.
vscode 自动安装脚本
This file contains 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
# VSCode 自动安装脚本, 适用于CentOS | |
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' | |
yum check-update | |
sudo yum install code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment