Last active
December 25, 2022 03:29
-
-
Save ucalyptus2/6198ccf3f468a56c36484a1a2ee9af06 to your computer and use it in GitHub Desktop.
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
VERSION=$1 | |
mkdir -p ~/.local/lib ~/.local/bin | |
curl -fL https://github.com/coder/code-server/releases/download/v$VERSION/code-server-$VERSION-linux-amd64.tar.gz | tar -C ~/.local/lib -xz | |
mv ~/.local/lib/code-server-$VERSION-linux-amd64 ~/.local/lib/code-server-$VERSION | |
rm ~/.local/bin/code-server | |
ln -s ~/.local/lib/code-server-$VERSION/bin/code-server ~/.local/bin/code-server | |
PATH="~/.local/bin:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment