Personal dotfiles for Linux, mostly for Nixpkgs/NixOS-based and Termux setups. Mirrored using GitLab's push mirroring feature.
gitlab.com/andreijiroh-dev/dotfiles
linux
dotfiles
1#!/usr/bin/env bash
2
3# Output the VSCode version
4echo 'vscode_version = "'$(code --version | head -n1)'"'
5echo
6
7# Loop through each installed extension
8code --list-extensions | while read extension; do
9 publisher_name=$(echo "$extension" | cut -d '.' -f 1)
10 extension_name=$(echo "$extension" | cut -d '.' -f 2-)
11 echo '[[extensions]]'
12 echo 'publisher_name = "'$publisher_name'"'
13 echo 'extension_name = "'$extension_name'"'
14 echo
15done