kcrawford / dockutil

command line tool for managing dock items
http://patternbuffer.wordpress.com
Apache License 2.0
1.38k stars 131 forks source link

Add action to restart dock only #12

Closed njam closed 10 years ago

njam commented 11 years ago

to apply changes from multiple dockutil-calls with --no-restart:

    dockutil --no-restart --add '/Applications/VirtualBox.app'
    dockutil --no-restart --add '/Applications/TextEdit.app'
    dockutil --no-restart --add '/Applications/Utilities/Terminal.app'
    dockutil --restart
njam commented 11 years ago

I understand it might be confusing having --no-restart and --restart, both for the CLI-interface and for the variable naming in the script. Let me know if you think this is a bad idea, or how it could be done better.

njam commented 10 years ago

@kcrawford bump, what do you think about adding this functionality?

pearofducks commented 10 years ago

killall Dock

(same thing) :)

kcrawford commented 10 years ago

I tend to agree with @pearofducks that one can just killall -HUP Dock if needed.