Created
July 25, 2013 18:42
-
-
Save timsutton/6082569 to your computer and use it in GitHub Desktop.
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/sh | |
PREFS_SRC="/Library/CDA/Files/google_chrome_preferences" | |
PREFS_TGT_DIR="$HOME/Library/Application Support/Google/Chrome/Default" | |
PREFS_TGT_FILE="$PREFS_TGT_DIR/Preferences" | |
# make our user's chrome profile dir if one doesn't already exist | |
[ -d "$PREFS_TGT_DIR" ] || mkdir -p "$PREFS_TGT_DIR" | |
# if prefs file doesn't already exist, copy it | |
[ -e "$PREFS_TGT_FILE" ] || cp "$PREFS_SRC" "$PREFS_TGT_FILE" | |
# yeah thanks | |
touch "$PREFS_TGT_DIR/../First Run" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment