Skip to content

Instantly share code, notes, and snippets.

@tomer-yoskovich
Created June 15, 2020 11:56
Show Gist options
  • Save tomer-yoskovich/7298e6d6446e0647bd305f9adfeff5bc to your computer and use it in GitHub Desktop.
Save tomer-yoskovich/7298e6d6446e0647bd305f9adfeff5bc to your computer and use it in GitHub Desktop.
function openMultipleChromeWebsites() {
declare websites=""
arr=(
'https://www.microsoft.com'
'https://www.apple.com'
'https://www.amazon.com'
)
for i in "${arr[@]}"
do
websites="$websites $i"
done
open -na "Google Chrome" --args --new-window $(echo $websites)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment