Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

iHiD/dotfiles

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setting up a new Mac for development

This is my personal setup for setting up a Mac for development. Suggestions welcome in issues. PRs less welcome unless you know me and are pretty sure I'd appreciate it :)

BEFORE YOU START

As initial users have more restrictive rules regarding name captialization, remember to create a non-primary user first (called something like tempuser) . Create that user, then a real one for iHiD, then delete the old one.

Mac Setup

Toolbar

  • Show battery percentage

Settings/Touchpad

  • Touchpad -> Check Tap to click
  • Displays -> Night Shift -> Custom: 22:00 to 9:00, More Warm
  • Sound -> Sound Effects: Check Show volume in menu bar

Settings/Displays

  • Night Shift: Custom: 22:00 to 9:00, More Warm

Settings/BlueTooth

  • Check "Show bluetooth in menu bar"

Finder

Preferences:

  • Turn on Hard Disks
  • Turn on External Disks
  • Turn off CDs...
  • Turn off Connected Servers
  • New finder windows shows iHiD

Sidebar: TODO - Insert image

Advanced:

  • Show all filename extensions

1Password

Download, configure. Phone required.

ssh

Generate a key, add it to keychain, and put it on the clipboard:

  • ssh-keygen -t rsa
  • ssh-add -K ~/.ssh/id_rsa
  • pbcopy < ~/.ssh/id_rsa.pub

Then paste it into GitHub at https://github.com/settings/keys

Also consider adding to chef repos (at blob/master/cookbooks/users/templates/default/iHiD_pub.erb)

Homebrew

Firstly, we need Homebrew to manage dependencies.

In the dotfiles we have a Brewfile. We need to install brew, install git, clone the dotfiles repo, then run the brewfile.

  • Install homebrew: https://brew.sh/
  • brew install git
  • git clone https://github.com/iHiD/dotfiles.git ~/.dotfiles
  • ln -s ~/.dotfiles/files/Brewfile ~/Brewfile

Ensure everything is uncommented in the Brewfile then run:

  • cd ~ && brew bundle

MacVim

Don't install this from homebrew. Instead download the most recent DMG from https://github.com/macvim-dev/macvim/releases

VIM

Let's get VIM setup:

ln -s ~/.dotfiles/.vim ~/.vim ln -s ~/.dotfiles/files/.gvimrc ~/.gvimrc

Git

Configure Git correctly (it was installed in the step above)

  • ln -s ~/.dotfiles/files/.gitconfig ~/.gitconfig
  • ln -s ~/.dotfiles/files/.gitignore_global ~/.gitignore_global
  • git config --global core.excludesfile ~/.gitignore_global

Terminal

  • Import iHiD terminal from ~/.dotfiles/files (CMD-SHIFT-. show files).
  • Set iHiD terminal to default

Fish

Fish will be installed via Homebrew. Run these to make it default:

  • echo /usr/local/bin/fish | sudo tee -a /etc/shells
  • chsh -s /usr/local/bin/fish
  • ln ~/.dotfiles/files/config.fish ~/.config/fish/config.fish

Install fisher (you may need to get the real URL of https://git.io/fisher):

  • curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
  • ln -s ~/.dotfiles/files/fishfile ~/.config/fish/fishfile
  • fish -c fisher

Set correct colours for ls: set -Ux LSCOLORS gxfxbEaEBxxEhEhBaDaCaD

Alfred

Download: https://www.alfredapp.com/

Ruby

  • ruby-install ruby

Create a ruby version file using:

  • echo "ruby-3.2.1" > ~/.ruby-version

Javascript

nvm is installed via fisher. Run this to install node:

  • nvm install lts
  • nvm use lts

Then get the latest npm and install yarn.

  • npm install -g npm@latest
  • npm install -g yarn

Prettier

I'm not 100% sure this is needed but I think it worked.

  • yarn global add prettier @prettier/plugin-ruby

Link misc dotfiles

  • ln -s ~/.dotfiles/files/.ssh_config ~/.ssh/config

Ngrok

Add the auth token from https://dashboard.ngrok.com/get-started/setup

Download exercism website

mkdir -p ~/Code/exercism
git clone git@github.com:exercism/website.git ~/Code/exercism/website

About

My Dotfiles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.