Skip to content

Instantly share code, notes, and snippets.

@ph20
Created August 14, 2024 17:13
Show Gist options
  • Save ph20/9c9c1de8ddbc2e3b0665356abfe9bf26 to your computer and use it in GitHub Desktop.
Save ph20/9c9c1de8ddbc2e3b0665356abfe9bf26 to your computer and use it in GitHub Desktop.
scan and show profile name directory name for google chrome profiles
find ~/.config/google-chrome/ -name "Preferences" -exec sh -c '
for file; do
dir=$(dirname "$file")
profile_name=$(jq -r .profile.name "$file")
echo "$dir: $profile_name"
done
' sh {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment