Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- export TZ="Australia/Brisbane"
- # Permanent directory to store the user-data directory of your 'fresh'
- # Chrome configuration.
- fresh_dir="$HOME/.fresh-chrome"
- # Temporary directory in which to create new user-data directories for
- # temporary Chrome instances.
- tmp_dir="/tmp"
- ### Main script begins
- set -e
- timestamp=`date +%Y%m%d%H%M%S`
- if [[ -e "$fresh_dir" ]]; then
- user_dir="$tmp_dir/chrome-$timestamp-$RANDOM"
- cp -r "$fresh_dir" "$user_dir"
- google-chrome "--user-data-dir=$fresh_dir"
- else
- google-chrome "--user-data-dir=$fresh_dir"
- fi
Add Comment
Please, Sign In to add comment