Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ginokent/vscodeenv
Install fixed version Visual Studio Code and fixed version extensions in idempotent.
https://github.com/ginokent/vscodeenv
bash visual-studio-code vscode
Last synced: 18 days ago
JSON representation
Install fixed version Visual Studio Code and fixed version extensions in idempotent.
- Host: GitHub
- URL: https://github.com/ginokent/vscodeenv
- Owner: ginokent
- License: mit
- Created: 2021-03-05T12:56:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-14T22:07:21.000Z (9 months ago)
- Last Synced: 2024-07-30T20:59:49.365Z (3 months ago)
- Topics: bash, visual-studio-code, vscode
- Language: Shell
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vscodeenv
Install fixed version Visual Studio Code and fixed version extensions in idempotent.
**As of 2021-03-10, only Darwin is supported.**
# Installing
```bash
wget https://raw.githubusercontent.com/ginokent/vscodeenv/HEAD/bin/vscodeenv-darwin --output-document=/usr/local/bin/vscodeenv && chmod -v +x /usr/local/bin/vscodeenv
```# Usage
```console
$ vscodeenvvscodeenv is a tool for helping to install specific version 'Visual Studio Code'
Usage:
vscodeenv [arguments]
The commands are:
freeze Generate version lock script
install Install specific version 'Visual Studio Code'
arguments
'Visual Studio Code' version
If not given, install latest version
options
-f, --fource
Fource installkill Kill '/Applications/Visual Studio Code.app'
list List installable 'Visual Studio Code' versions
arguments
-1, --one-column
If you want to output a single column, add this optionself-update Update 'vscodeenv' itself
```
If you want to generate version lock script, run `vscodeenv freeze`.
( `vscodeenv freeze` is inspired by [`pip freeze`](https://pip.pypa.io/en/stable/reference/pip_freeze/) )output example:
```
$ vscodeenv freeze
#!/bin/sh
# Code generated by vscodeenv freeze; This code is vscodeenv version lock script.
set -eu# Visual Studio Code
vscodeenv install 1.54.1# Extensions
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
```Generate a version lock script and then install from it in another environment.
```console
1. Generate a version lock script
$ vscodeenv freeze > vscodeenv.lock.sh2. Run vscodeenv.lock.sh as shell script (require vscodeenv)
$ sh vscodeenv.lock.sh
```