diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2026-01-05 23:21:38 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2026-01-05 23:21:38 -0500 |
| commit | 8e8f9df5f50a7a178673b15a9ce250152a2ea0e2 (patch) | |
| tree | f2aacfa5c503a40e9a5982b2a6c444b16b6db4f1 | |
| parent | eb0ed039b908463e856420a436936b9b465fb60e (diff) | |
| download | dotfiles-8e8f9df5f50a7a178673b15a9ce250152a2ea0e2.tar.gz dotfiles-8e8f9df5f50a7a178673b15a9ce250152a2ea0e2.tar.xz | |
Add shell function to list brave profiles
| -rw-r--r-- | kshrc | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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() { |
