Skip to content

Instantly share code, notes, and snippets.

@bendyorke
Last active March 12, 2021 14:25
Show Gist options
  • Save bendyorke/fd5203aae3b833d4fa2e to your computer and use it in GitHub Desktop.
Save bendyorke/fd5203aae3b833d4fa2e to your computer and use it in GitHub Desktop.
Setting up a new mac

Some apps to install before moving forward:

Direct links included, if you trust me ;)

Install XCode from the App Store (this could take a while)

Some preferences to update before moving forward

  • Screen Zoom
    • System Preferences -> Accessibility -> Zoom -> ☑️ Use scroll gesture with modifier key to zoom
  • Remote Login | Screen Sharing
    • System Preferences -> Sharing -> ☑️ Remote Login
    • System Preferences -> Sharing -> ☑️ Screen Sharing
      • while you're here go ahead and change your computer's public name to something AWESOME

Remove key-repeat lag

$ defaults write NSGlobalDomain KeyRepeat -int 0

Disable font smoothing if you are using a HiDPI external display

defaults -currentHost write -g AppleFontSmoothing -int 0

and reboot

Install Command Line Tools

$ xcode-select --install

or download directly from the developer center [see: https://developer.apple.com/downloads/index.action]

Generate a new ssh key

$ mkdir ~/.ssh
$ cd ~/.ssh
$ ssh-keygen -t rsa -C "<your email>"
$ ssh-add ~/.ssh/id_rsa
$ pbcopy < ~/.ssh/id_rsa.pub

Add your ssh key to github

visit https://github.com/settings/ssh and add your new ssh key [see https://help.github.com/articles/generating-ssh-keys]

$ ssh -T git@github.com

Download your own dot-files

$ git clone git@github.com:GITHUB_USERNAME/config.git ~/.config

Configure git

$ git config --global core.excludesfile '~/.gitignore'
$ git config --global core.editor `which vim`
$ git config --global user.name "[name]"
$ git config --global user.email "[email]"

Set up some global ignores

$ cat >> ~/.gitignore <<DELIM
*.swp
*.swo
.DS_*
.env
.tmux
node_modules
DELIM

Or whatever you need to ignore

@binyamindavid
Copy link

Typo

brew intstall postgresql

#should be
brew install postgresql

@ahmadajmi
Copy link

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment