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:
2014-10-23 02:38:27 -07:00
parent a5cc42a0d7
commit 1def33eb62
6 changed files with 43 additions and 3 deletions

View File

@@ -1,2 +0,0 @@
[install]
download-cache = ~/.pip/download_cache

View File

@@ -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
View File

@@ -0,0 +1,2 @@
[MESSAGES CONTROL]
disable-msg=R0903