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
#!/bin/bash | |
curl -LJO "https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64" | |
tar -xvf vscode_cli_alpine_x64_cli.tar.gz | |
chmod +x code | |
sudo cp code /usr/local/bin | |
cat << EOF | sudo tee /etc/systemd/system/code.service | |
[Unit] | |
Description=Visual Studio Code CLI service | |
[Service] |