Vernon Wee Hong KOH zrewidował ten Gist 1 month ago. Przejdź do rewizji
1 file changed, 1 insertion, 2 deletions
typescript_react_recommendation.json
| @@ -14,7 +14,6 @@ | |||
| 14 | 14 | "formulahendry.auto-rename-tag", | |
| 15 | 15 | "GitHub.vscode-github-actions", | |
| 16 | 16 | "ms-azuretools.vscode-containers", | |
| 17 | - | "GitHub.copilot", | |
| 18 | - | "Codeium.codeium" | |
| 17 | + | "GitHub.copilot" | |
| 19 | 18 | ] | |
| 20 | 19 | } | |
Vernon Wee Hong KOH zrewidował ten Gist 1 month ago. Przejdź do rewizji
1 file changed, 3 insertions, 3 deletions
README.md
| @@ -22,13 +22,13 @@ Replace `<GIST>` with the raw base of this Gist (everything up to and including | |||
| 22 | 22 | bash <(curl -sSL https://opengist.resetrix.work/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh) | |
| 23 | 23 | ||
| 24 | 24 | # 2. Install remote recommendation JSON to the default profile | |
| 25 | - | bash <(curl -sSL https://opengist.resetrix.work/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh) -f "https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/typescript_react_recommendation.json" | |
| 25 | + | bash <(curl -sSL https://opengist.resetrix.work/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh) -f "https://opengist.resetrix.work/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/typescript_react_recommendation.json" | |
| 26 | 26 | ||
| 27 | 27 | # 3. Install TypeScript and React remote recommendation JSON to a specific named profile | |
| 28 | - | bash <(curl -sSL https://opengist.resetrix.work/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh) -p "TypeScript" -f "https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/typescript_react_recommendation.json" | |
| 28 | + | bash <(curl -sSL https://opengist.resetrix.work/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh) -p "TypeScript" -f "https://opengist.resetrix.work/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/typescript_react_recommendation.json" | |
| 29 | 29 | ||
| 30 | 30 | # 4. Install Python remote recommendation JSON to a specific named profile | |
| 31 | - | bash <(curl -sSL https://opengist.resetrix.work/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh) -p "Python" -f "https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/python_recommendation.json" | |
| 31 | + | bash <(curl -sSL https://opengist.resetrix.work/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh) -p "Python" -f "https://opengist.resetrix.work/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/python_recommendation.json" | |
| 32 | 32 | ``` | |
| 33 | 33 | ||
| 34 | 34 | ```powershell | |
weehong zrewidował ten Gist 1 month ago. Przejdź do rewizji
1 file changed, 7 insertions, 7 deletions
README.md
| @@ -19,21 +19,21 @@ Replace `<GIST>` with the raw base of this Gist (everything up to and including | |||
| 19 | 19 | ||
| 20 | 20 | ```bash | |
| 21 | 21 | # 1. macOS / Ubuntu (Install to default profile from a LOCAL .vscode/extensions.json) | |
| 22 | - | bash <(curl -sSL https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh) | |
| 22 | + | bash <(curl -sSL https://opengist.resetrix.work/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh) | |
| 23 | 23 | ||
| 24 | 24 | # 2. Install remote recommendation JSON to the default profile | |
| 25 | - | bash <(curl -sSL https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh) -f "https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/typescript_react_recommendation.json" | |
| 25 | + | bash <(curl -sSL https://opengist.resetrix.work/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh) -f "https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/typescript_react_recommendation.json" | |
| 26 | 26 | ||
| 27 | 27 | # 3. Install TypeScript and React remote recommendation JSON to a specific named profile | |
| 28 | - | bash <(curl -sSL https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh) -p "TypeScript" -f "https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/typescript_react_recommendation.json" | |
| 28 | + | bash <(curl -sSL https://opengist.resetrix.work/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh) -p "TypeScript" -f "https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/typescript_react_recommendation.json" | |
| 29 | 29 | ||
| 30 | 30 | # 4. Install Python remote recommendation JSON to a specific named profile | |
| 31 | - | bash <(curl -sSL https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh) -p "Python" -f "https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/python_recommendation.json" | |
| 31 | + | bash <(curl -sSL https://opengist.resetrix.work/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh) -p "Python" -f "https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/python_recommendation.json" | |
| 32 | 32 | ``` | |
| 33 | 33 | ||
| 34 | 34 | ```powershell | |
| 35 | 35 | # Windows | |
| 36 | - | iwr -useb https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.ps1 | iex | |
| 36 | + | iwr -useb https://opengist.resetrix.work/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.ps1 | iex | |
| 37 | 37 | ||
| 38 | 38 | # named profile | |
| 39 | 39 | .\install.ps1 -ProfileName "WorkSetup" | |
| @@ -43,12 +43,12 @@ iwr -useb https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/ | |||
| 43 | 43 | ||
| 44 | 44 | ```bash | |
| 45 | 45 | # macOS / Ubuntu / WSL2 — interactive picker for IDEs and plugins | |
| 46 | - | bash <(curl -sSL https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install-jetbrains.sh) | |
| 46 | + | bash <(curl -sSL https://opengist.resetrix.work/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install-jetbrains.sh) | |
| 47 | 47 | ``` | |
| 48 | 48 | ||
| 49 | 49 | ```powershell | |
| 50 | 50 | # Windows — interactive picker | |
| 51 | - | iwr -useb https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install-jetbrains.ps1 | iex | |
| 51 | + | iwr -useb https://opengist.resetrix.work/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install-jetbrains.ps1 | iex | |
| 52 | 52 | ``` | |
| 53 | 53 | ||
| 54 | 54 | --- | |
weehong zrewidował ten Gist 2 months ago. Przejdź do rewizji
2 files changed, 18 insertions, 2 deletions
README.md
| @@ -24,8 +24,11 @@ bash <(curl -sSL https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d8596 | |||
| 24 | 24 | # 2. Install remote recommendation JSON to the default profile | |
| 25 | 25 | bash <(curl -sSL https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh) -f "https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/typescript_react_recommendation.json" | |
| 26 | 26 | ||
| 27 | - | # 3. Install remote recommendation JSON to a specific named profile | |
| 28 | - | bash <(curl -sSL https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh) -p "Frontend-Stack" -f "https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/typescript_react_recommendation.json" | |
| 27 | + | # 3. Install TypeScript and React remote recommendation JSON to a specific named profile | |
| 28 | + | bash <(curl -sSL https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh) -p "TypeScript" -f "https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/typescript_react_recommendation.json" | |
| 29 | + | ||
| 30 | + | # 4. Install Python remote recommendation JSON to a specific named profile | |
| 31 | + | bash <(curl -sSL https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh) -p "Python" -f "https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/python_recommendation.json" | |
| 29 | 32 | ``` | |
| 30 | 33 | ||
| 31 | 34 | ```powershell | |
python_recommendation.json(stworzono plik)
| @@ -0,0 +1,13 @@ | |||
| 1 | + | { | |
| 2 | + | "recommendations": [ | |
| 3 | + | "ms-python.python", | |
| 4 | + | "ms-python.vscode-pylance", | |
| 5 | + | "charliermarsh.ruff", | |
| 6 | + | "usernamehw.errorlens", | |
| 7 | + | "mikestead.dotenv", | |
| 8 | + | "donjayamanne.python-environment-manager", | |
| 9 | + | "rangav.vscode-thunder-client", | |
| 10 | + | "njpwerner.autodocstring", | |
| 11 | + | "eamodio.gitlens" | |
| 12 | + | ] | |
| 13 | + | } | |
weehong zrewidował ten Gist 2 months ago. Przejdź do rewizji
1 file changed, 1 insertion, 1 deletion
install.sh
| @@ -11,7 +11,7 @@ | |||
| 11 | 11 | set -euo pipefail | |
| 12 | 12 | IFS=$'\n\t' | |
| 13 | 13 | ||
| 14 | - | readonly EXTENSIONS=( | |
| 14 | + | EXTENSIONS=( | |
| 15 | 15 | "docker.docker" | |
| 16 | 16 | "github.github-vscode-theme" | |
| 17 | 17 | "GitHub.vscode-github-actions" | |
weehong zrewidował ten Gist 2 months ago. Przejdź do rewizji
1 file changed, 11 insertions, 9 deletions
install.sh
| @@ -92,14 +92,14 @@ fi | |||
| 92 | 92 | # 3. Resolve JSON Source (Local File vs URL) | |
| 93 | 93 | JSON_FILE="" | |
| 94 | 94 | TEMP_JSON_FILE="" | |
| 95 | + | USE_HARDCODED=false | |
| 95 | 96 | ||
| 96 | 97 | if [[ -z "$SOURCE" ]]; then | |
| 97 | 98 | if [[ -f ".vscode/extensions.json" ]]; then | |
| 98 | 99 | JSON_FILE=".vscode/extensions.json" | |
| 99 | 100 | else | |
| 100 | - | echo "Error: No JSON file specified and .vscode/extensions.json not found." >&2 | |
| 101 | - | usage >&2 | |
| 102 | - | exit 2 | |
| 101 | + | echo "Info: No JSON file specified and .vscode/extensions.json not found. Using hardcoded extensions." >&2 | |
| 102 | + | USE_HARDCODED=true | |
| 103 | 103 | fi | |
| 104 | 104 | elif [[ "$SOURCE" =~ ^https?:// ]]; then | |
| 105 | 105 | if ! command -v curl >/dev/null 2>&1; then | |
| @@ -118,12 +118,14 @@ else | |||
| 118 | 118 | fi | |
| 119 | 119 | fi | |
| 120 | 120 | ||
| 121 | - | # 4. Extract extensions from JSON using jq | |
| 122 | - | mapfile -t EXTENSIONS < <(jq -r '.recommendations[]?' "$JSON_FILE") | |
| 123 | - | ||
| 124 | - | if [[ ${#EXTENSIONS[@]} -eq 0 ]]; then | |
| 125 | - | echo "Error: No extensions found under the 'recommendations' key." >&2 | |
| 126 | - | exit 1 | |
| 121 | + | # 4. Extract extensions from JSON using jq (if not using hardcoded array) | |
| 122 | + | if [[ "$USE_HARDCODED" == false ]]; then | |
| 123 | + | mapfile -t EXTENSIONS < <(jq -r '.recommendations[]?' "$JSON_FILE") | |
| 124 | + | ||
| 125 | + | if [[ ${#EXTENSIONS[@]} -eq 0 ]]; then | |
| 126 | + | echo "Error: No extensions found under the 'recommendations' key." >&2 | |
| 127 | + | exit 1 | |
| 128 | + | fi | |
| 127 | 129 | fi | |
| 128 | 130 | ||
| 129 | 131 | declare -a CODE_ARGS=() | |
weehong zrewidował ten Gist 2 months ago. Przejdź do rewizji
1 file changed, 8 insertions
install.sh
| @@ -11,6 +11,14 @@ | |||
| 11 | 11 | set -euo pipefail | |
| 12 | 12 | IFS=$'\n\t' | |
| 13 | 13 | ||
| 14 | + | readonly EXTENSIONS=( | |
| 15 | + | "docker.docker" | |
| 16 | + | "github.github-vscode-theme" | |
| 17 | + | "GitHub.vscode-github-actions" | |
| 18 | + | "ms-azuretools.vscode-containers" | |
| 19 | + | "ms-vscode-remote.vscode-remote-extensionpack" | |
| 20 | + | "pkief.material-icon-theme" | |
| 21 | + | ) | |
| 14 | 22 | PROFILE="" | |
| 15 | 23 | SOURCE="" | |
| 16 | 24 | ||
weehong zrewidował ten Gist 2 months ago. Przejdź do rewizji
3 files changed, 7 insertions, 1 deletion
README.md
| @@ -56,6 +56,8 @@ iwr -useb https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/ | |||
| 56 | 56 | ||
| 57 | 57 | - `docker.docker` | |
| 58 | 58 | - `github.github-vscode-theme` | |
| 59 | + | - `GitHub.vscode-github-actions` | |
| 60 | + | - `ms-azuretools.vscode-containers` | |
| 59 | 61 | - `ms-vscode-remote.vscode-remote-extensionpack` | |
| 60 | 62 | - `pkief.material-icon-theme` | |
| 61 | 63 | ||
install.ps1
| @@ -44,6 +44,8 @@ $ErrorActionPreference = 'Stop' | |||
| 44 | 44 | $Extensions = @( | |
| 45 | 45 | 'docker.docker', | |
| 46 | 46 | 'github.github-vscode-theme', | |
| 47 | + | 'GitHub.vscode-github-actions', | |
| 48 | + | 'ms-azuretools.vscode-containers', | |
| 47 | 49 | 'ms-vscode-remote.vscode-remote-extensionpack', | |
| 48 | 50 | 'pkief.material-icon-theme' | |
| 49 | 51 | ) | |
typescript_react_recommendation.json
| @@ -12,7 +12,9 @@ | |||
| 12 | 12 | "usernamehw.errorlens", | |
| 13 | 13 | "eamodio.gitlens", | |
| 14 | 14 | "formulahendry.auto-rename-tag", | |
| 15 | + | "GitHub.vscode-github-actions", | |
| 16 | + | "ms-azuretools.vscode-containers", | |
| 15 | 17 | "GitHub.copilot", | |
| 16 | 18 | "Codeium.codeium" | |
| 17 | 19 | ] | |
| 18 | - | } | |
| 20 | + | } | |
weehong zrewidował ten Gist 2 months ago. Przejdź do rewizji
1 file changed, 2 deletions
typescript_react_recommendation.json
| @@ -3,7 +3,6 @@ | |||
| 3 | 3 | "dsznajder.es7-react-js-snippets", | |
| 4 | 4 | "planbcoding.vscode-react-refactor", | |
| 5 | 5 | "bradlc.vscode-tailwindcss", | |
| 6 | - | "WallabyJs.console-ninja", | |
| 7 | 6 | "ms-vscode.vscode-typescript-next", | |
| 8 | 7 | "yoavbls.pretty-ts-errors", | |
| 9 | 8 | "christian-kohler.path-intellisense", | |
| @@ -12,7 +11,6 @@ | |||
| 12 | 11 | "esbenp.prettier-vscode", | |
| 13 | 12 | "usernamehw.errorlens", | |
| 14 | 13 | "eamodio.gitlens", | |
| 15 | - | "rangav.vscode-thunder-client", | |
| 16 | 14 | "formulahendry.auto-rename-tag", | |
| 17 | 15 | "GitHub.copilot", | |
| 18 | 16 | "Codeium.codeium" | |
weehong zrewidował ten Gist 2 months ago. Przejdź do rewizji
1 file changed, 6 insertions, 6 deletions
README.md
| @@ -18,14 +18,14 @@ Replace `<GIST>` with the raw base of this Gist (everything up to and including | |||
| 18 | 18 | ### VS Code | |
| 19 | 19 | ||
| 20 | 20 | ```bash | |
| 21 | - | # macOS / Ubuntu (default profile) | |
| 22 | - | curl -sSL https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh | bash | |
| 21 | + | # 1. macOS / Ubuntu (Install to default profile from a LOCAL .vscode/extensions.json) | |
| 22 | + | bash <(curl -sSL https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh) | |
| 23 | 23 | ||
| 24 | - | # Install recommendation plugin to a specific profile | |
| 25 | - | ./install.sh -p "Frontend-Stack" -f "https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/typescript_react_recommendation.json" | |
| 24 | + | # 2. Install remote recommendation JSON to the default profile | |
| 25 | + | bash <(curl -sSL https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh) -f "https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/typescript_react_recommendation.json" | |
| 26 | 26 | ||
| 27 | - | # named profile | |
| 28 | - | bash <(curl -sSL https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh) --profile "WorkSetup" | |
| 27 | + | # 3. Install remote recommendation JSON to a specific named profile | |
| 28 | + | bash <(curl -sSL https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/install.sh) -p "Frontend-Stack" -f "https://opengist.rmrf.online/weehong/b2a7c0a2ae6d40e8a14f8d85964a9186/raw/HEAD/typescript_react_recommendation.json" | |
| 29 | 29 | ``` | |
| 30 | 30 | ||
| 31 | 31 | ```powershell | |