Skip to content

Instantly share code, notes, and snippets.

@i3zhe
Created July 26, 2013 02:13
Show Gist options
  • Save i3zhe/6085523 to your computer and use it in GitHub Desktop.
Save i3zhe/6085523 to your computer and use it in GitHub Desktop.
Add REMOVE_FROM_DOCK to your dock icon's context menu, and you can hide finder from there
f=/System/Library/CoreServices/Dock.app/Contents/Resources/DockMenus; sudo cp $f.plist $f-old.plist; sudo defaults write $f finder-running -array-add '<dict><key>command</key><integer>1004</integer><key>name</key><string>REMOVE_FR‌OM_DOCK</string></dict>'; sudo chmod 644 $f.plist; osascript -e 'quit app "Dock"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment