Change permissions of gnupg.

This commit is contained in:
Ivan Malison 2015-01-26 00:42:29 -08:00
parent 68d4512d1c
commit a09923c0cc
2 changed files with 14 additions and 12 deletions

View File

@ -127,6 +127,7 @@ def fix_dropbox_permissions(ctx):
ctx.run("sudo chmod -R 700 ~/.ssh")
ctx.run("sudo chmod -R 700 $(readlink -f ~/.ssh)")
ctx.run("sudo chmod -R 700 ~/Dropbox/auth/foolery.pem")
ctx.run("sudo chmod -R 700 ~/Dropbox/configs/dotfiles/gnupg")
ns.add_task(fix_pip)

View File

@ -17,7 +17,6 @@ def setup(ctx):
fonts(ctx)
fix_htop(ctx)
iTerm(ctx)
# setup_dbus(ctx)
keyboard_settings(ctx)
custom_keyboard_shortcuts(ctx)
@ -32,14 +31,16 @@ def macvim(ctx):
ctx.run("brew install {0}".format(macvim_install))
ctx.run("vim +BundleInstall! +q +q")
@ctask
def setup_dbus(ctx):
ctx.run("ln -sfv /usr/local/opt/d-bus/*.plist ~/Library/LaunchAgents")
@ctask
def osx_config(ctx):
ctx.run('sudo {0}'.format(
os.path.join(util.RESOURCES_DIRECTORY, 'osx.sh')
def system_settings(ctx):
ctx.run('{0}'.format(
os.path.join(util.RESOURCES_DIRECTORY, 'osx_setup.sh')
), pty=True)
@ -58,13 +59,6 @@ def brew(ctx):
ctx.run('ruby -e "$(curl -fsSL {0}'.format(path))
@ctask
def packages(ctx):
ctx.run('brew update')
for package_name in ESSENTIAL + BASICS + SHOULD_INSTALL + MISC:
ctx.run('brew install {0}'.format(package_name))
@ctask
def set_path_for_launchd(ctx):
launch_agent_dir = os.path.expanduser('~/Library/LaunchAgents/')
@ -78,6 +72,8 @@ def set_path_for_launchd(ctx):
APPS_NEEDING_ASSISTIVE_DEVICE_ACCESS = ('Slate', 'Synergy', 'iTerm')
@ctask
def access_for_assistive_devices(ctx):
for app in APPS_NEEDING_ASSISTIVE_DEVICE_ACCESS:
@ -101,6 +97,7 @@ def access_if_exists(ctx, app_string):
)
)
@ctask(aliases=['karabiner', 'fast_repeat'])
def hyper(ctx):
source = '{0}/karabiner-hyper.xml'.format(util.RESOURCES_DIRECTORY)
@ -175,6 +172,8 @@ settings_directory = os.path.join(util.RESOURCES_DIRECTORY, 'osx_settings')
all_save_settings = []
all_write_settings = []
all_diff_settings = []
def functions_for_filename(filename):
filepath = os.path.join(settings_directory, filename)
task_name = 'settings-write:' + filename.replace('.', '-')
@ -205,6 +204,8 @@ def functions_for_filename(filename):
))
globals()[task_name] = task
all_diff_settings.append(task)
for _, _, filenames in os.walk(settings_directory):
for filename in filenames:
functions_for_filename(filename)