dotfiles/dotfiles/lib/functions/get_chrome_folder_from_address

9 lines
238 B
Bash
Executable File

#!/usr/bin/env sh
function get_chrome_folder_from_address {
cat ~/.config/google-chrome/Local\ State |
jq -r ".profile.info_cache | to_entries | .[] | select(.value.user_name == \"$1\") | .key"
}
get_chrome_folder_from_address "$@"