-
-
Save og-shawn-crigger/4486696 to your computer and use it in GitHub Desktop.
Revisions
-
og-shawn-crigger revised this gist
Nov 4, 2014 . No changes.There are no files selected for viewing
-
Josue Rodriguez revised this gist
Apr 4, 2012 . 1 changed file with 6 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,12 @@ #!/bin/bash # Place this script in dir: /usr/bin # Change permissions: sudo chmod +x /usr/bin/MAMP-DOCK-INVISIBLE # # Ensure the MAMP 'Info.plist' file has the following entry: # <key>LSUIElement</key> # <string dock-visible="1">NO</string> # # Usage: # MAMP-DOCK-INVISIBLE 1 ... (hide dock icon) # MAMP-DOCK-INVISIBLE 0 ... (show dock icon) -
Josue Rodriguez revised this gist
Mar 27, 2012 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,6 +2,7 @@ # Place this script in dir: /usr/bin # Change permissions: chmod +x /usr/bin/MAMP-DOCK-INVISIBLE # Ensure the MAMP 'info.plist' file has the following entry: <string dock-visible="1">NO</string> # Usage: # MAMP-DOCK-INVISIBLE 1 ... (hide dock icon) # MAMP-DOCK-INVISIBLE 0 ... (show dock icon) -
Josue Rodriguez renamed this gist
Mar 27, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Josue Rodriguez created this gist
Mar 27, 2012 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,33 @@ #!/bin/bash # Place this script in dir: /usr/bin # Change permissions: chmod +x /usr/bin/MAMP-DOCK-INVISIBLE # Usage: # MAMP-DOCK-INVISIBLE 1 ... (hide dock icon) # MAMP-DOCK-INVISIBLE 0 ... (show dock icon) cd /Applications/MAMP\ PRO/MAMP\ PRO.app/Contents echo echo "... quiting MAMP PRO if active ..." osascript -e 'quit app "MAMP PRO"' echo if [ $1 ] && [ "$1" -eq 1 ]; then echo "... Hiding MAMP Pro from DOCK ..." sed 's/<string dock-visible="1">NO<\/string>/<string dock-visible="1">YES<\/string>/g' Info.plist > Info.plist_new else echo "... Showing MAMP Pro in DOCK ..." sed 's/<string dock-visible="1">YES<\/string>/<string dock-visible="1">NO<\/string>/g' Info.plist > Info.plist_new fi cat Info.plist_new > Info.plist rm Info.plist_new sleep 3 echo echo "... Restarting MAMP Pro ..." open ../ echo