Last active
April 30, 2021 22:33
-
-
Save ar-to/21bc296b97dde702e91380168a11d088 to your computer and use it in GitHub Desktop.
Mac Dev setup checklist
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 characters
New Mac setup | |
check for xcode command tools: | |
$ xcode-select -p or gcc | |
$ xcode-select --install. -- install | |
SHELL | |
.bash_profile or install zsh (http://ohmyz.sh) | |
if error in zsh see https://github.com/ohmyzsh/ohmyzsh/issues/6835 | |
4.Create .bash_profile in root or in terminal: $ touch .bash_profile | |
5.Open .bash_profile in textedit $ open -e .bash_profile | |
6.Then add the code from https://gist.github.com/ar-to/70f7c124b48ade315065ffe799f222a0 | |
First thing this will do is change the PS1 setting that controls the prompt info form: | |
Aris-Mac-mini:~ ari$ — that use setting \h:\W \u\$ | |
To | |
ari@Aris-Mac-mini ~ $. —new uses export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ " | |
Then run $ source .bash_profile. — to refresh terminal with new updates | |
PROGRAMS | |
HOMEBREW | |
install : https://brew.sh | |
Homebrew Cask : brew install --cask [program] | |
Install w/Homebrew: | |
$ brew install node ruby rbenv git tmux nginx | |
$ brew install yarn --without-node #install yarn w/o node when using nvm | |
(Useful via brew install) | |
[email protected] : stable version before 10 but avoids errors with symfony apps | |
Install w/Homebrew Cask: | |
$ brew cask install iterm2 postman slack dropbox visual-studio-code google-chrome firefox | |
(Useful via cask) | |
tmux : create shell sessions; https://github.com/tmux/tmux; https://howchoo.com/g/ytkwotvkztq/using-the-iterm-2-and-tmux-integration | |
atom : editor built on electron | |
abricotine : markdown editor | |
skype : chat/screen share | |
iterm2: https://www.iterm2.com/index.html | |
tmux: https://github.com/tmux/tmux - used to run multiple terminal session without tabs | |
Hipchat $ brew cask install hipchat | |
Thunderbird $ brew cask install thunderbird —email client | |
Dropbox $ brew cask install dropbox | |
Visual Studio Code $ brew cask install visual-studio-code | |
Firefox $ brew cask install firefox | |
Virtual box $ brew cask install virtualbox | |
prepros - less/sass compiler | |
Abricotine: http://abricotine.brrd.fr | |
pgAdmin4 : https://www.pgadmin.org --GUI client for PostgresSQL | |
adobe-creative-cloud: brew cask install adobe-creative-cloud; run installer found /usr/local/Caskroom/adobe-creative-cloud/latest | |
screenhero: no longer standalone, only part of slack paid tier | |
evernote : note taking app thats cross-platform | |
(Optional) | |
Install w/.dmg: | |
Git — version control : https://git-scm.com | |
NodeJS : https://nodejs.org/en/download/package-manager/#macos | |
Firefox Quantum Developer Edition: https://www.mozilla.org/en-US/firefox/developer/ | |
Codelite : used for compiling c++ https://codelite.org/ | |
ScreamingFrog : used for seo crawling https://www.screamingfrog.co.uk/seo-spider/pricing/ | |
NodeJS/NVM/NPM/YARN: | |
Install NVM, node package manager via curl: see https://github.com/creationix/nvm | |
check the code to add to `.zshrc` or `.bash_profile` at https://github.com/nvm-sh/nvm#manual-install | |
$ brew update && brew upgrade node -- upgrades to most current node version | |
$ node -v | |
$ nvm install --lts -- installs all lts versions | |
$ nvm ls-remote -- list of available versions and look for LTS | |
$ nvm install v6.11.3 - creates ~/.nvm/versions/node/v6.11.3 | |
$ nvm list | |
$ nvm use system|stable|default | |
Install w/NPM globally to use on CLI: | |
$ npm i -g http-server yo bower nodemon eslint | |
$ npm i -g create-react-app | |
yarn:https://yarnpkg.com/getting-started/install | |
http-server: https://www.npmjs.com/package/http-server | |
yoeman: http://yeoman.io | |
bower: https://bower.io | |
reactjs: https://reactjs.org/docs/installation.html | |
Additional tools for web development: https://www.keycdn.com/blog/web-development-tools/ | |
Ruby & Gems: | |
to install rbenv see https://github.com/rbenv/rbenv#installation | |
$ brew install rbenv | |
$ rbenv install -l #list available versions | |
$ rbenv install 2.4.2 #install version number | |
$ rbenv versions #shows what versions are installed in machine | |
$ rbenv local 2.4.2 #change | |
rbenv: version manager https://github.com/rbenv/rbenv#installation | |
DIRECTORY: | |
1.Cmd+Shift+G opens finder directory search then enter ~ to open root [username] or open terminal | |
2.Create folder “repos” or $ mkdir repos | |
Enable hidden files: Show Hidden Folders by running these commands in terminal: | |
$ defaults write com.apple.finder AppleShowAllFiles YES #turns on hidden files | |
$ killall Finder #resets finder | |
GIT | |
7.Now run the following in root [~] to create .gitcofig file and create folder | |
$ touch .gitconfig | |
$ open -e .gitconfig | |
Add code from https://gist.github.com/ar-to/e61577d49d54170f9c2cf03f96556ec4 | |
Then run to see the new additions | |
$ source .gitconfig — refresh terminal with changes | |
$ git config —global -l —— list all | |
$ ls —list folders | |
$ mkdir repos && cd repos —make and change directory to repos folder | |
8.Clone repo from GitHub or other cloud storage using http (not secure) | |
9.To use SSH you need a key generated in your terminal then added to your GitHub account settings: visit https://help.github.com/articles/connecting-to-github-with-ssh/ | |
SSH key setup with Github | |
see https://docs.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent | |
run: | |
$ ls -al ~/.ssh. — shows whats inside; should be empty | |
$ ssh-keygen -t ed25519 -C "[email protected]" | |
Enter passphrase [12345] twice for extra security [optional] | |
This will create files inside the ~/.ssh folder | |
Add keys to ssh-agent to manage them. See github link above. | |
Open ~/.ssh/id_rsa.pud in code editor, copy the code and add it to GitHub under settings>SSH and GPG keys as new SSH key with a descriptive name to where it was generated at [Mac mini at work] | |
Go back to repos folder and clone using SSH | |
$ git clone [ssh url] | |
Will say IP address for GitHub cannot be establish, enter “yes”, it will add the IP address to a new file inside ~/.ssh/known_hosts to top following ssh key; enter passphrase and its complete | |
.gitignore_global | |
To setup a gitignore file for all repos in the workstation see https://help.github.com/articles/ignoring-files/ | |
or | |
Add the following inside the .gitconfig file | |
[core] | |
excludesfile = /Users/ari/.gitignore_global | |
Common gitignore configurations see https://gist.github.com/octocat/9257657 | |
Visual Code & other Editors | |
10. Add settings to code editors for best experience | |
For VSC settings see https://gist.github.com/ar-to/7ff3ae917ab9a87cfd10ea390e3afdea | |
For VSC extensions see https://gist.github.com/ar-to/2fb55e0e3dd1663102adda9813bbd22b | |
To use CLI commands for VSC see: https://code.visualstudio.com/docs/setup/mac | |
$ cd myproject | |
$ code . -- opens VSC for the pwd | |
For list of more VSC commands https://code.visualstudio.com/docs/editor/command-line | |
Adobe Creative Cloud | |
11. Install with Homebrew Cask then open it by going to '/usr/local/Caskroom/adobe-creative-cloud/latest/Creative Cloud Installer.app' in finder using Cmd+Shift+G | |
It will install the toolbar icon on top of the screen then just sign in and download/install software | |
VirtualBox | |
12. Setup virtual box with a windows 10 home/pro edition install to test on IE and Edge browsers and other Windows specific programs | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment