Skip to content

Instantly share code, notes, and snippets.

@sponomarev
Created November 9, 2013 10:43
Show Gist options
  • Star 53 You must be signed in to star a gist
  • Fork 11 You must be signed in to fork a gist
  • Save sponomarev/7384189 to your computer and use it in GitHub Desktop.
Save sponomarev/7384189 to your computer and use it in GitHub Desktop.
Remove iTerm2 icon from Dock
# remove
/usr/libexec/PlistBuddy -c 'Add :LSUIElement bool true' /Applications/iTerm.app/Contents/Info.plist
# restore
/usr/libexec/PlistBuddy -c 'Delete :LSUIElement' /Applications/iTerm.app/Contents/Info.plist
@ngelx
Copy link

ngelx commented Jan 3, 2016

Awesome, thanks!

@noizo
Copy link

noizo commented May 16, 2016

many thanks

@ggtmtmgg
Copy link

ggtmtmgg commented Jun 29, 2016

For my iTerm

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

@mvaneijgen
Copy link

Has this changed, because the code will make my iTerm (Build 3.0.12) crash on startup.

@yjhuoh
Copy link

yjhuoh commented Nov 27, 2016

i had the same issue with 3.0.12. a downgrade to 3.0.10 resolved it

@randyinla
Copy link

Hack isn't necessary. I have 3.0.12 and there is an option to show/hide the dock & tab icon in iTerm2's preferences.

Preferences -> Advanced - Search for "app switcher" and you should see the option for, "Hide iTerm2 from the dock and from the CMD-Tab app switcher." Change to 'yes' and restart the app. This also removes the menu bar, but you can always get back to iTerm2 prefs by hitting CMD+, after hitting your hotkey to show the window.

@sponomarev
Copy link
Author

Here is the solution for latest 3.1 version

image

@csandanov
Copy link

I've used the option suggested by @randyinla with my iterm2 (3.0.15) but it created another problem – the first line is obscured by macOS window bar which is super annoying. For those who're struggling and want to roll it back, you can open iterm2 preferences with ⌘ + , (Command-Comma) combination.

@dineshrajnkl
Copy link

@sponomarev Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment