{"id":15715831,"url":"https://github.com/adamisntdead/devmymac","last_synced_at":"2025-04-06T22:09:22.145Z","repository":{"id":55433103,"uuid":"64915013","full_name":"adamisntdead/DevMyMac","owner":"adamisntdead","description":"✨ ✨ A Simple Tool To Setup A Mac for Development✨✨","archived":false,"fork":false,"pushed_at":"2020-10-08T09:20:50.000Z","size":9693,"stargazers_count":380,"open_issues_count":2,"forks_count":40,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-06T22:09:14.667Z","etag":null,"topics":["homebrew","homebrew-cask","macos","setup"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adamisntdead.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-04T07:58:07.000Z","updated_at":"2025-03-19T19:22:30.000Z","dependencies_parsed_at":"2022-08-15T00:10:49.963Z","dependency_job_id":null,"html_url":"https://github.com/adamisntdead/DevMyMac","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamisntdead%2FDevMyMac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamisntdead%2FDevMyMac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamisntdead%2FDevMyMac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamisntdead%2FDevMyMac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamisntdead","download_url":"https://codeload.github.com/adamisntdead/DevMyMac/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247557767,"owners_count":20958047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["homebrew","homebrew-cask","macos","setup"],"created_at":"2024-10-03T21:43:11.216Z","updated_at":"2025-04-06T22:09:22.127Z","avatar_url":"https://github.com/adamisntdead.png","language":"Shell","readme":"![DevMyMac](Media/DMM-FN.png)\n\n[![Join the chat at https://gitter.im/DevMyMac/Lobby](https://badges.gitter.im/DevMyMac/Lobby.svg)](https://gitter.im/DevMyMac/Lobby?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n#### Welcome To DevMyMac!\nDevMyMac is a script that allows the user to setup their OSX / MacOS Computer for Development in\n\n* Ruby\n* Java\n* Android Development\n* Unity3D\n* Python\n* Javascript\n* PHP\n\nSee [Below](#guide) For whats installed!\n\nWorks with __OSX Yosemite__, __OSX El Capitan__ \u0026 __MacOS Sierra__\n\n# Using the Script\nTo use this script, first you must install XCode, or the XCode Command Line Tools. To install the command line tools, use the command:\n\n`xcode-select --install`\n\nThen you can use the script!\n\n`sh -c \"$(curl -fsSL https://raw.githubusercontent.com/adamisntdead/DevMyMac/master/setup.sh)\"`\n\n\u003chr/\u003e\n\n\u003ca name=\"guide\"\u003e\u003c/a\u003e\n# Whats Installed\n\n* [Core](#core)\n* [Node](#node)\n* [Java](#java)\n* [Android](#android)\n* [Ruby](#ruby)\n* [Unity3D](#unity)\n* [Databases](#database)\n\n\u003ca name=\"core\"\u003e\u003c/a\u003e\n### Core\n###### Set Computer Name\nThe first thing the script does when you run it, is you are prompted for the name of your computer.\nThen, we take the name and use it to set the __hostname and computer name__.\n\n```bash\nsudo scutil --set ComputerName \"$cpname\"\nsudo scutil --set HostName \"$cpname\"\nsudo scutil --set LocalHostName \"$cpname\"\ndefaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string \"$cpname\"\n```\n\n###### Settings Changes\nAfter this we make a few changes to the settings:\n\n* __Enable Press and hold keys__\n`defaults write -g ApplePressAndHoldEnabled -bool false`\n* __Show Path in the Finder__\n`defaults write com.apple.finder ShowPathbar -bool true`\n* __Speed Up Key Press Repeat__\n`defaults write NSGlobalDomain KeyRepeat -int 0.02`\n* __Speed Up Time Taken to Start Key Repeats__\n`defaults write NSGlobalDomain InitialKeyRepeat -int 12`\n* __Show The Library Folder__\n`chflags nohidden ~/Library`\n\n###### Git Configuration\nYou will be prompted for your name and Git E-Mail. This is to set the git configuration values.\n\n```bash\ngit config --global user.email \"adam@adamkellydesign.com\"\ngit config --global user.name \"Adam Kelly\"\n```\n\n###### Zsh\nNext, the script will install [OhMyZsh](https://github.com/robbyrussell/oh-my-zsh), which isa really nice configuration pack for Zsh, which is the shell of choice for many, including myself. We don't need to install zsh, as its already installed on OSX.\n\n###### Homebrew\nHomebrew is a package manager for OSX / MacOS, thats quite popular. Its buit on Ruby, and is really simple to use. It is what we will use to install most of the software and packages in the script.\n\nYou install it using the command:\n\n`/usr/bin/ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\"`\n\n###### Options\nYou will now be prompted for a few options on what you would like to install, see the individual sections on each one for a full explenation\n\n###### Packages and Software\nOne of the main parts of this script is the ease of installing the Packages / Apps you use quickly.\nTo do this, we are going to use Homebrew, and a Homebrew _tap_ called __Cask__.\n\nTo install cask, we use this command:\n\n`brew tap caskroom/cask`\n\nNow we can use 2 commands to install apps and packages.\n\nTo install a homebrew package normally, we use the command `brew install package-name`, and to install an app using Cask, we use `brew cask install app-name`.\n\nAs part of this script we install these packages:\n* Tree\n* wGet\n* ACK\n* Heroku-Toolbelt\n\nUsing this command:\n```\nbrew install \\\n  tree \\\n  wget \\\n  ack \\\n  heroku-toolbelt\n```\nAnd install these apps:\n* Google Chrome\n* Coderunner 2\n* Evernote\n* Firefox\n* Spotify\n* Gitter\n* Github Desktop\n* Atom\n* GitKraken\n* Open Broadcast Software (_OBS_)\n* Steam\n* Mamp\n* MacDown\n* Google Drive\n* iTerm 2\n* Sublime Text\n* Virtualbox\n* Minecraft\n* Scratch\n\nUsing this command:\n```\nbrew cask install \\\n  google-chrome \\\n  coderunner \\\n  evernote \\\n  firefox \\\n  spotify \\\n  gitter \\\n  github-desktop \\\n  atom \\\n  gitkraken \\\n  obs \\\n  steam \\\n  mamp \\\n  macdown \\\n  google-drive \\\n  iterm2 \\\n  sublime-text \\\n  virtualbox \\\n  minecraft \\\n  scratch\n```\n\nFinally, we install EMacs\n```\nbrew install emacs --with-cocoa\nbrew linkapps emacs\n```\n\n### Node\n\u003ca name=\"node\"\u003e\u003c/a\u003e\nInstead of installing [Nodejs](nodejs.org) via Homebrew, we can install it via Node Version Manager, This gives us more control over what versions we are using, which is handy when testing our code for backwards compatibility.\nWe install NVM with this command: `curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.4/install.sh | bash`\n\nThen we can use NVM to install the latest version of Node, and then tell NVM to use that version.\n```bash\nnvm install node\nnvm use node\n```\n\nNow we have access to the Node command, and also [NPM](npmjs.com) (Node Package Manager).\nThe script also installs some modules for convenience (Bower, Gulp, Grunt-CLI, Coffeescript, JSHint and LESS)\n\n\n### Java\n\u003ca name=\"java\"\u003e\u003c/a\u003e\nTo setup for java development, we want to install the [JDK](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) (Java Development Kit), along with my IDE of choice, eclipse.\n\nThankfully, we can install all of these using Homebrew:\n```bash\nbrew cask install \\\n  java \\\n  eclipse-ide \\\n  eclipse-java\n```\n\n\n### Android Development\n\u003ca name=\"android\"\u003e\u003c/a\u003e\nTo develop for android devices, we need a few things, The JDK, Android Studio, The Android SDK and Possibly an IDE (Eclipse)\n\nAgain, we can do all of this with Homebrew. First we install the JDK as its a dependency for others, then the IDE's and finally the Android SDK:\n\n```bash\nbrew cask install \\\n  java \\\n  eclipse-ide \\\n  eclipse-java \\\n  android-studio \\\n  intellij-idea-ce\n\nbrew install android-sdk\n```\n\n\n### Ruby\n\u003ca name=\"ruby\"\u003e\u003c/a\u003e\nLike with node, the best wasy to install ruby is by using the [Ruby Version Manager](https://rvm.io/). This means we can easily control what version of ruby we are using, which again is helpful for backwards checking ect.\n\nFirst, we must setup something to get a key, so that the installation doesnt fail.\n```\nbrew install gpg\ncommand curl -sSL https://rvm.io/mpapis.asc | gpg --import -\n```\n\nthen we can run the RVM install script\n\n```\n\\curl -L https://get.rvm.io | bash -s stable\nsource ~/.rvm/scripts/rvm\n```\n\nAnd then finally we can install the latest version of ruby:\n```\nrvm install ruby-2.3.1\n```\n\nNow we have Ruby and Ruby Gems installed, we can install rails\n```\ngem install bundler\ngem install rails\n```\n\n\n### Unity3D\n\u003ca name=\"unity\"\u003e\u003c/a\u003e\nThis bit is quite simple, to install [Unity3D]() We can just use the cask for both _Unity_ and the _Unity Web Player_\nThe command is the same as the installation of the core apps:\n```bash\nbrew cask install unity unity-web-player\n```\n\n\n### Databases\n\u003ca name=\"database\"\u003e\u003c/a\u003e\nIn this option, we install a few types of database, which is very useful for PHP, Ruby and Node Apps.\nWe are going to install a few common ones:\n* MySQL (with MySQL Workbench)\n* Postgresql\n* MongoDB\n* Redis\n* Elastic Search\n\nWe can install all of these using homebrew, and we can install MySQL Workbench Using Cask\n\n```\nbrew install \\\n  mysql \\\n  postgresql \\\n  mongodb \\\n  redis \\\n  elasticsearch\n\nbrew cask install mysqlworkbench\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamisntdead%2Fdevmymac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamisntdead%2Fdevmymac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamisntdead%2Fdevmymac/lists"}