Skip to content

Instantly share code, notes, and snippets.

@ugurerkan
Created October 1, 2015 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ugurerkan/9058e5321f3f24728ecb to your computer and use it in GitHub Desktop.
Save ugurerkan/9058e5321f3f24728ecb to your computer and use it in GitHub Desktop.
# toggle iTerm Dock icon
# add this to your .bash_profile or .zshrc
function toggleiTerm() {
echo "Do you wish to hide iTerm in Dock and enable fullscreen visor?"
select ync in "Hide" "Show" "Cancel"; do
case $ync in
'Hide' )
defaults write /Applications/iTerm.app/Contents/Info LSUIElement true
echo "relaunch iTerm to take effectives"
break
;;
'Show' )
defaults write /Applications/iTerm.app/Contents/Info LSUIElement false
echo "run killall 'iTerm' to exit, and then relaunch it"
break
;;
'Cancel' )
break
;;
esac
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment