Skip to content

theNewFolder/osx_dev_setup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 

Repository files navigation

OSX Development Setup

This is how I setup an OSX machine for devlopment. This is mainly a reminder for myself.

Homebrew

Instal Homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install git
brew install fish
brew install macvim
brew install vifm
brew install gnu-sed
brew install gnupg
brew install yarn 
brew install fzf
brew install fd
brew install diff-so-fancy
brew install visual-studio-code
brew install --cask caffeine

Volta.sh

curl https://get.volta.sh | bash
source ~/.config/fish/config.fish
volta install node
volta intall yarn

Fish

Change the default shell to fish

echo $(which fish) | sudo tee -a /etc/shells && chsh -s $(which fish)

Fish prompt

Install Fisher

curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher

oh-my-fish

curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish

theme

omf install bobthefish

fzf

fisher install PatrickF1/fzf.fish

More awesome fish

Install Source Code Pro font for Powerline like a pro

brew tap homebrew/cask-fonts
brew install font-source-code-pro-for-powerline
brew install qlcolorcode qlstephen qlmarkdown quicklook-json qlimagesize suspicious-package apparency quicklookase qlvideo

Github

Add public keys to Github

ssh-keygen -t rsa -b 4096 -C "[email protected]"
cat ~/.ssh/id_rsa.pub | pbcopy 

Add it here

Add PGP keys to Github

Guide

Update to proper Vim

$ curl -L https://bit.ly/janus-bootstrap | bash

Git stuff

git config --global diff.colorMoved zebra

Remove prefixes

git config --global diff.noprefix true

checkout pull requests

git config --global --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"

Enable facy diff

git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"

Aliases

A better git l

git config --global alias.l "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"

Install fzf.fish

https://github.com/PatrickF1/fzf.fish

Use gitstatus

https://github.com/romkatv/gitstatus

About

OSX Development Setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published