mirror of
https://mau.dev/andreijiroh-dev/dotfiles.git
synced 2025-02-22 13:12:06 +00:00
15 lines
No EOL
442 B
Bash
Executable file
15 lines
No EOL
442 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Output the VSCode version
|
|
echo 'vscode_version = "'$(code --version | head -n1)'"'
|
|
echo
|
|
|
|
# Loop through each installed extension
|
|
code --list-extensions | while read extension; do
|
|
publisher_name=$(echo "$extension" | cut -d '.' -f 1)
|
|
extension_name=$(echo "$extension" | cut -d '.' -f 2-)
|
|
echo '[[extensions]]'
|
|
echo 'publisher_name = "'$publisher_name'"'
|
|
echo 'extension_name = "'$extension_name'"'
|
|
echo
|
|
done |