Skip to content

Instantly share code, notes, and snippets.

@ucalyptus2
Last active December 25, 2022 03:29
Show Gist options
  • Save ucalyptus2/6198ccf3f468a56c36484a1a2ee9af06 to your computer and use it in GitHub Desktop.
Save ucalyptus2/6198ccf3f468a56c36484a1a2ee9af06 to your computer and use it in GitHub Desktop.
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