Created
October 1, 2015 12:11
-
-
Save ugurerkan/9058e5321f3f24728ecb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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