-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvscodium_ext.sh
More file actions
executable file
·79 lines (71 loc) · 2.1 KB
/
Copy pathvscodium_ext.sh
File metadata and controls
executable file
·79 lines (71 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/usr/bin/env bash
# No `-e`: this script is best-effort by design (a failed extension install
# for one editor must not skip the other editor's install pass below).
set -uo pipefail
# List of extensions to install (as a space-separated string for sh compatibility)
extensions="
aaron-bond.better-comments
alefragnani.bookmarks
alefragnani.project-manager
be5invis.vscode-icontheme-nomo-dark
budparr.language-hugo-vscode
chrmarti.regex
continue.continue
docker.docker
eamodio.gitlens
earshinov.sort-lines-by-selection
editorconfig.editorconfig
esbenp.prettier-vscode
gruntfuggly.todo-tree
hashicorp.terraform
jaspernorth.vscode-pigments
mkhl.shfmt
ms-azuretools.vscode-containers
ms-azuretools.vscode-docker
ms-python.debugpy
ms-python.python
ms-python.vscode-pylance
ms-python.vscode-python-envs
ms-vscode-remote.remote-containers
ms-vscode-remote.remote-ssh
ms-vscode-remote.remote-ssh-edit
ms-vscode.powershell
ms-vscode.remote-explorer
nonoroazoro.syncing
oderwat.indent-rainbow
redhat.ansible
redhat.vscode-yaml
saoudrizwan.claude-dev
yzhang.markdown-all-in-one
zokugun.cron-tasks
"
# Function to install extensions
install_extensions() {
local editor_cmd="$1"
echo "-----------------------------------------------------"
echo "Installing extensions for $editor_cmd..."
echo "-----------------------------------------------------"
local args=()
for extension in $extensions; do
args+=(--install-extension "$extension")
done
if [ ${#args[@]} -gt 0 ]; then
"$editor_cmd" "${args[@]}"
fi
echo "-----------------------------------------------------"
echo "Installation for $editor_cmd finished."
echo "-----------------------------------------------------"
}
# Check for and install for Visual Studio Code
if command -v code > /dev/null 2>&1; then
install_extensions code
else
echo "'code' command not found. Skipping installation for VS Code."
fi
# Check for and install for VSCodium
if command -v codium > /dev/null 2>&1; then
install_extensions codium
else
echo "'codium' command not found. Skipping installation for VSCodium."
fi
echo "Script finished."