Added javascript, python requirements. pylinrc. Fixed pip directory in dotfiles, add enable_access_for_assitive devices and slate. remove alfred, divvy.
This commit is contained in:
parent
a5cc42a0d7
commit
1def33eb62
@ -1,2 +0,0 @@
|
||||
[install]
|
||||
download-cache = ~/.pip/download_cache
|
@ -293,3 +293,18 @@ function reload_root_agent {
|
||||
function ec {
|
||||
emacsclient -n $1 > /dev/null
|
||||
}
|
||||
|
||||
function enable_access_for_assistive_devices {
|
||||
local bundle_identifier=$(/usr/libexec/PlistBuddy -c 'Print CFBundleIdentifier' "$1/Contents/Info.plist")
|
||||
local where_clause="where service='kTCCServiceAccessibility' and client='$bundle_identifier'"
|
||||
local search_string="SELECT * from access ${where_clause};"
|
||||
local values_string="VALUES('kTCCServiceAccessibility','$bundle_identifier',0,1,1,NULL)"
|
||||
if test -z $(sudo sqlite3 '/Library/Application Support/com.apple.TCC/TCC.db' $search_string);
|
||||
then
|
||||
local sql_string="INSERT INTO access $values_string;"
|
||||
else
|
||||
local sql_string="UPDATE access set allowed = 1 ${where_clause};"
|
||||
fi
|
||||
echo $sql_string
|
||||
sudo sqlite3 '/Library/Application Support/com.apple.TCC/TCC.db' $sql_string
|
||||
}
|
||||
|
2
dotfiles/pylintrc
Normal file
2
dotfiles/pylintrc
Normal file
@ -0,0 +1,2 @@
|
||||
[MESSAGES CONTROL]
|
||||
disable-msg=R0903
|
@ -1,3 +1,5 @@
|
||||
npm -g install http-server
|
||||
npm -g install js-beautify
|
||||
npm -g install tern
|
||||
npm -g install jshint
|
||||
npm -g install swank-js
|
||||
|
@ -12,3 +12,5 @@ dotfiles
|
||||
numpy
|
||||
readline
|
||||
Flask
|
||||
flake8
|
||||
pylint
|
||||
|
23
tasks/osx.py
23
tasks/osx.py
@ -34,7 +34,8 @@ SHOULD_INSTALL = (
|
||||
MISC = ("file-formula", "less", "openssh --with-brewed-openssl",
|
||||
"perl518", "rsync", "svn", "unzip", "docker", "boot2docker", "pandoc",
|
||||
"mercurial")
|
||||
CASKS = ('alfred', 'caffeine', 'flux', 'google-chrome', 'iterm2', 'spotify', 'vlc', 'virtualbox', 'xquartz')
|
||||
CASKS = ('caffeine', 'flux', 'google-chrome', 'iterm2', 'spotify',
|
||||
'vlc', 'virtualbox', 'xquartz', 'synergy', 'slate')
|
||||
|
||||
|
||||
@ctask
|
||||
@ -78,6 +79,26 @@ def setup_cocoa_emacs(ctx):
|
||||
ctx.run('ln -s {0} {1}'.format(source, destination))
|
||||
|
||||
|
||||
APPS_NEEDING_ASSISTIVE_DEVICE_ACCESS = ('Slate', 'Synergy', 'iTerm')
|
||||
@ctask
|
||||
def enable_access_for_assitive_devices(ctx):
|
||||
for app in APPS_NEEDING_ASSISTIVE_DEVICE_ACCESS:
|
||||
app_string = '/Applications/{0}.app'.format(app)
|
||||
user_application = os.path.expanduser('~' + app_string)
|
||||
if os.path.exists(user_application):
|
||||
ctx.run(
|
||||
'source ~/.zshrc && '
|
||||
'enable_access_for_assitive_devices "{0}"'.format(
|
||||
user_application
|
||||
)
|
||||
)
|
||||
|
||||
if os.path.exists(app_string):
|
||||
ctx.run(
|
||||
'source ~/.zshrc && '
|
||||
'enable_access_for_assitive_devices "{0}"'.format(app_string)
|
||||
)
|
||||
|
||||
@ctask
|
||||
def get_command_line_tools(ctx):
|
||||
if not command_exists('gcc'):
|
||||
|
Loading…
Reference in New Issue
Block a user