-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.chrome
21 lines (14 loc) · 902 Bytes
/
.chrome
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
# ~/.chrome
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.chrome` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Allow installing user scripts via GitHub Gist or Userscripts.org
defaults write com.google.Chrome ExtensionInstallSources -array "https://gist.githubusercontent.com/" "http://userscripts.org/*"
defaults write com.google.Chrome.canary ExtensionInstallSources -array "https://gist.githubusercontent.com/" "http://userscripts.org/*"
# Disable the all too sensitive backswipe
defaults write com.google.Chrome AppleEnableSwipeNavigateWithScrolls -bool false
defaults write com.google.Chrome.canary AppleEnableSwipeNavigateWithScrolls -bool false
echo "Make Google Chrome Canary default browser";
open -a "Google Chrome Canary" --args --make-default-browser