From 7a9175137d7ceeabd135397e7e631020af1596e3 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 21 Jan 2015 18:42:18 -0800 Subject: [PATCH] Clear dock, keyboard stuff. --- dotfiles/lib/shellrc/osx.sh | 5 +++++ resources/{osx.sh => osx_setup.sh} | 0 tasks/osx.py | 9 ++++++++- 3 files changed, 13 insertions(+), 1 deletion(-) rename resources/{osx.sh => osx_setup.sh} (100%) diff --git a/dotfiles/lib/shellrc/osx.sh b/dotfiles/lib/shellrc/osx.sh index 7fb8d4a7..657633eb 100644 --- a/dotfiles/lib/shellrc/osx.sh +++ b/dotfiles/lib/shellrc/osx.sh @@ -169,3 +169,8 @@ function socks_proxy { echo "$@" ssh -CND 9999 "$@" } + +function clear_dock { + defaults write com.apple.dock persistent-apps -array +} + diff --git a/resources/osx.sh b/resources/osx_setup.sh similarity index 100% rename from resources/osx.sh rename to resources/osx_setup.sh diff --git a/tasks/osx.py b/tasks/osx.py index 66ac34d1..eee5ca26 100644 --- a/tasks/osx.py +++ b/tasks/osx.py @@ -16,8 +16,10 @@ def setup(ctx): rvm(ctx) fonts(ctx) fix_htop(ctx) + iTerm(ctx) # setup_dbus(ctx) - keyboard_settings() + keyboard_settings(ctx) + clear_dock(ctx) @ctask @@ -167,3 +169,8 @@ def launch_agents(ctx, flags=''): @ctask def keyboard_settings(ctx): ctx.run("zsh -c 'refresh_config && set_modifier_keys_on_all_keyboards'") + + +@ctask +def configure_dock(ctx): + ctx.run("zsh -c 'refresh_config && clear_dock'")