Skip to content

Instantly share code, notes, and snippets.

@timsutton
Created July 25, 2013 18:42
Show Gist options
  • Save timsutton/6082569 to your computer and use it in GitHub Desktop.
Save timsutton/6082569 to your computer and use it in GitHub Desktop.
#!/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