# MacOs quick setup 🚀 ## Getting everything ready ### 1 - Xcode/Ruby/Command line tools You need to have [Xcode](https://itunes.apple.com/us/app/xcode/id497799835?mt=12#) installed to proceed. ```shell xcode-select --install sudo xcodebuild -license accept ``` ### 2 - Brew [Brew](https://brew.sh/) is a package manager for MacOs. ```shell /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew doctor brew update ``` ### 3 - Anaconda [Anaconda](https://www.anaconda.com/download/#macos) is a cool python library. You can get it from their site or download it with brew with the next command, but since it's a big file sometimes it fails. ```shell brew cask install anaconda ``` ### 4 - Java Well, it's [Java](https://java.com/). It turns your mac into a coffee machine. ```shell brew cask install java ``` ### 5 - NodeJs [NodeJs](https://nodejs.org/en/) is amazing. Go check it out if you're not familiar with it. And it comes also with a nifty package manager called npm (yes, like brew) that we'll use in a bit. ```shell brew install node ``` ### 6 - Git I don't think I need to tell you what [Git](https://git-scm.com/) is, considering the website you're on. ```shell brew install git brew install git-lfs ``` ## Installing commonly used software ### 1 - Google Chrome & Firefox ```shell brew cask install google-chrome brew cask install firefox ``` ### 2 - Spectacle [Spectacle](https://www.spectacleapp.com/) is an app that satisfies my compulsory need for order on my mac screen. ```shell brew cask install spectacle ``` ### 3 - Sublime Text [Sublime Text](https://www.sublimetext.com/) is the text editor. I'll be creating a gist for my favourite plugins and setting. ```shell brew cask install sublime-text ``` ### 4 - Intellij Idea [Intellij](https://www.jetbrains.com/idea/specials/idea/idea.html) is an extremely good IDE for java and others. There's a free account for students and professors. ```shell brew cask install intellij-idea ``` ### 5 - Gitkraken ```shell brew cask install gitkraken ``` ### 6 - Utilities ```shell brew cask install vlc ``` ### 7 - Stack for web development #### Imageoptim [Imageoptim](https://imageoptim.com/mac) optimizes the image sizes. ```shell brew cask install imageoptim ``` #### Filezilla [Filezilla](https://filezilla-project.org/) handles your FTP & SFTP needs. ```shell brew cask install filezilla ``` #### Codekit & Ghostlab [Codekit](https://codekitapp.com/) & [Ghostlab](https://www.vanamco.com/ghostlab/) are apps that allow you to speed up your webdev. ```shell brew cask install codekit brew cask install ghostlab ``` ## Setting up default softwares for each extension I like giving to Ceasar what is of Ceasar. But I don't like to proceed for each file extension to do [this](https://apple.stackexchange.com/questions/182871/i-want-to-make-vlc-my-default-player-on-mac-os-x-10-10-3). So I found this lovely thing called [Duti](https://github.com/moretension/duti/). ### Installing duti ```shell brew install duti ``` ### Setting VLC the default video player ```shell duti -s org.videolan.vlc .mp4 all duti -s org.videolan.vlc .webm all duti -s org.videolan.vlc .mkv all duti -s org.videolan.vlc .flv all duti -s org.videolan.vlc .vob all duti -s org.videolan.vlc .drc all duti -s org.videolan.vlc .avi all duti -s org.videolan.vlc .mov all duti -s org.videolan.vlc .wmv all duti -s org.videolan.vlc .rm all duti -s org.videolan.vlc .rmvb all duti -s org.videolan.vlc .mpg all duti -s org.videolan.vlc .mpeg all duti -s org.videolan.vlc .mpv all duti -s org.videolan.vlc .mp2 all duti -s org.videolan.vlc .mpe all duti -s org.videolan.vlc .m4v all ``` ### Setting Sublime Text the default textual file editor ```shell duti -s com.sublimetext.3 .mod all duti -s com.sublimetext.3 .dat all duti -s com.sublimetext.3 .run all duti -s com.sublimetext.3 .tex all duti -s com.sublimetext.3 .html all duti -s com.sublimetext.3 .json all duti -s com.sublimetext.3 .php all duti -s com.sublimetext.3 .md all duti -s com.sublimetext.3 .txt all duti -s com.sublimetext.3 .py all ``` ## Various ### Disabling extension change warning ```shell defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false killall Finder ``` ### Screenshot saved in .jpg and without shadows ```shell defaults write com.apple.screencapture disable-shadow -bool true defaults write com.apple.screencapture type jpg killall SystemUIServer ``` Have I forgotten anything? Do contact me and let me know!