From 8e8f9df5f50a7a178673b15a9ce250152a2ea0e2 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Mon, 5 Jan 2026 23:21:38 -0500 Subject: Add shell function to list brave profiles --- kshrc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'kshrc') diff --git a/kshrc b/kshrc index 1bed28b..4f4d486 100644 --- a/kshrc +++ b/kshrc @@ -396,6 +396,12 @@ dpwenv() { rm -f "$_f" } +# With some minor tweaks, this should work for chromium based browsers too +braveListProfiles() { + cat ~/.config/BraveSoftware/Brave-Browser/Local\ State \ + | jq -r '.profile | .info_cache | to_entries | .[] | "\(.key)\t\(.value.name)"' +} + # gensubids is useful for generating /etc/subuid and /etc/subgid # if you have say a 3rd user you want to add gensubids() { -- cgit v1.2.3