forked from mathiasbynens/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-vscode-ext.sh
executable file
·55 lines (51 loc) · 1.24 KB
/
install-vscode-ext.sh
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
#!/usr/bin/env bash
EXTENSIONS=(
"chakrounanas.turbo-console-log" \
"danielsanmedium.dscodegpt" \
"dbaeumer.vscode-eslint" \
"denoland.vscode-deno" \
"EditorConfig.EditorConfig" \
"eg2.vscode-npm-script" \
"xdebug.php-debug" \
"zobo.php-intellisense" \
"geddski.macros" \
"GitHub.remotehub" \
"GitHub.vscode-github-actions" \
"ikappas.phpcs" \
"mikestead.dotenv" \
"ms-python.python" \
"ms-python.vscode-pylance" \
"ms-toolsai.jupyter" \
"ms-vscode-remote.remote-containers" \
"ms-vsliveshare.vsliveshare" \
"oderwat.indent-rainbow" \
"PKief.material-icon-theme" \
"redhat.vscode-yaml" \
"waderyan.gitblame" \
"yatki.vscode-surround"
)
for VARIANT in "code"
do
if hash $VARIANT 2>/dev/null; then
echo "Installing extensions for $VARIANT"
for EXTENSION in ${EXTENSIONS[@]}
do
$VARIANT --install-extension $EXTENSION
done
fi
done
CODETERM_EXTENSIONS=(
"foam.foam-vscode" \
"mushan.vscode-paste-image" \
"PKief.material-icon-theme"
)
for VARIANT in "code-insiders"
do
if hash $VARIANT 2>/dev/null; then
echo "Installing extensions for $VARIANT"
for CODETERM_EXTENSION in ${CODETERM_EXTENSIONS[@]}
do
$VARIANT --install-extension $CODETERM_EXTENSION
done
fi
done