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'")