Merge remote-tracking branch 'origin/master'

This commit is contained in:
2021-08-21 19:09:56 +00:00
9 changed files with 223 additions and 129 deletions

View File

@@ -0,0 +1,8 @@
#!/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 "$@"

View File

@@ -0,0 +1,9 @@
#!/usr/bin/env sh
function start_chrome_for {
email=$1
shift
google-chrome-stable --profile-directory="$(get_chrome_folder_from_address "$email")" "$@"
}
start_chrome_for "$@"