Created
June 22, 2018 18:02
-
-
Save piersadrian/074a0f2135e8db57050cbee8c58c9780 to your computer and use it in GitHub Desktop.
/Appear.in.app/Contents/MacOS/Appear.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 1: create new Space in Mission Control for Desktop 2 | |
# 2: create application structure and remember to chmod +x this file | |
# 3: fully configure browser and webapp | |
# 4: set "Options -> Assign to Desktop on Display 2" | |
skel_dir="$HOME/.chrome-user-data-appear-in" | |
tmp_dir="/tmp" | |
set -e | |
timestamp=`date +%Y%m%d%H%M%S` | |
if [[ -e "$skel_dir" ]]; then | |
user_dir="$tmp_dir/chrome-user-data-appear-in-$timestamp-$RANDOM" | |
cp -r "$skel_dir" "$user_dir" | |
exec open -na "Google Chrome" --args --user-data-dir="$user_dir" --no-default-browser-check https://appear.in/piersadrian | |
else | |
exec open -na "Google Chrome" --args --user-data-dir=$skel_dir --no-default-browser-check https://appear.in/piersadrian | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment