Skip to content

Instantly share code, notes, and snippets.

@ilnurnasyrov2
ilnurnasyrov2 / hide-iterm-dock-icon.md
Created November 3, 2016 19:38 — forked from stvhwrd/hide-iterm-dock-icon.md
Hide the iTerm dock icon on Mac OS X

On my dual-drive MacBook Pro I have remapped the eject key to F13 using Karabiner and NoEjectDelay. The eject key has been assigned as the hotkey for a guake-style visor terminal using iTerm2. Having its own hotkey precludes the need for an icon, so I prefer to hide the iTerm dock icon.

####To hide the dock icon of iTerm2 on Mac OS X:

/usr/libexec/PlistBuddy -c 'Add :LSUIElement bool true' /Applications/iTerm.app/Contents/Info.plist

####To undo the above:

#!/usr/bin/env ruby
def next_member(previous)
previous.each_with_object([]) do |digit, member|
if member[-1] == digit
member[-2] += 1
else
member << 1
member << digit
end