Go Back
My Mac OSX Setup
January 14th, 2019
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"brew doctorbrew caskbrew tap caskroom/versionsbrew install curlbrew install gitbrew install wgetbrew cask install sublime-textbrew cask install iterm2brew cask install sourcetreebrew cask install discordbrew cask install google-chromebrew cask install iterm2brew cask install insomniaxbrew cask install insomniabrew cask install dropboxbrew cask install kapbrew cask install slackbrew cask install appcleanerbrew tap caskroom/fontsbrew cask install font-fira-code font-inter-ui
Ruby
brew install rbenv ruby-buildecho 'eval "$(rbenv init -)"' >> ~/.bash_profilesource ~/.bash_profilecurl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bashrbenv install 2.5.1 && rbenv global 2.5.1
~/.irbrc
require "irb/completion"require "irb/ext/save-history"IRB.conf[:SAVE_HISTORY] = 10000require "awesome_print"AwesomePrint.irb!
Node.js
brew install nodenv node-buildecho 'eval "$(nodenv init -)"' >> ~/.bash_profilesource ~/.bash_profilenodenv install 8.11.1 && nodenv global 8.11.1
PostgreSQL
brew install postgresqlbrew services start postgresqlcreatedb $(whoami)sudo -u $(whoami) psql $(whoami)
CREATE USER postgres SUPERUSER;CREATE DATABASE postgres WITH OWNER postgres;ALTER ROLE postgres WITH PASSWORD 'postgrespw';
Bash
Bash Prompt
cd ~/curl https://raw.githubusercontent.com/nicolashery/mac-dev-setup/master/.bash_prompt | grep -v "export PS1" > .bash_promptecho 'export PS1="\[${BOLD}${MAGENTA}\]\u \[$WHITE\]in \[$GREEN\]\w\[$WHITE\]\$([[ -n \$(git branch 2> /dev/null) ]] && echo \" on \")\[$PURPLE\]\$(parse_git_branch)\[$WHITE\]\n$ \[$RESET\]"' >> .bash_promptecho "source ~/.bash_prompt" >> ~/.bash_profile
Bash Profile
~/.bash_profile
alias ll='ls -l'alias f='open -a Finder ./'alias d='cd ~/Downloads'alias gs='git status'alias gac='git add . && git commit'alias gp='git push'alias gdf='git diff'alias gpl='git pull'alias gl='git log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit'
GitHub
SSH
ssh-keygen -t rsa -C "karis612@gmail.com"cat ~/.ssh/id_rsa.pub | pbcopy && open "https://github.com/settings/keys"
Config
git config --global user.name "Eunjae Lee"git config --global user.email "karis612@gmail.com"git config --global github.user eunjae-leegit config --global color.ui true
Mac OSX
#Set a blazingly fast keyboard repeat ratedefaults write NSGlobalDomain KeyRepeat -int 0.02#Set a shorter Delay until key repeatdefaults write NSGlobalDomain InitialKeyRepeat -int 12#Add a context menu item for showing the Web Inspector in web viewsdefaults write NSGlobalDomain WebKitDeveloperExtras -bool true#Show the ~/Library folderchflags nohidden ~/Library#Store screenshots in subfolder on desktopmkdir ~/Desktop/Screenshotsdefaults write com.apple.screencapture location ~/Desktop/Screenshots
VSCode
brew cask install visual-studio-code2gua.rainbow-bracketsdbaeumer.vscode-eslinteamodio.gitlenseg2.tslinteg2.vscode-npm-scriptesbenp.prettier-vscodek--kato.intellij-idea-keybindingsmohsen1.prettify-jsonoctref.vetursysoev.language-stylusVisualStudioExptTeam.vscodeintellicodewmaurer.change-case
settings.json
{"git.autofetch": true,"editor.fontFamily": "Fira Code","editor.tabSize": 2,"editor.renderWhitespace": "boundary","editor.fontLigatures": true,"editor.fontSize": 18,"editor.detectIndentation": false,"workbench.colorTheme": "Monokai Dimmed","files.autoSave": "off","terminal.integrated.scrollback": 100000,"terminal.integrated.shellArgs.osx": ["-l"],"editor.formatOnSave": true,"explorer.confirmDragAndDrop": false,"explorer.confirmDelete": false,"workbench.editor.enablePreview": false,"editor.multiCursorModifier": "ctrlCmd","editor.rulers": [80, 120],"typescript.updateImportsOnFileMove.enabled": "always","gitlens.advanced.messages": {"suppressShowKeyBindingsNotice": true},"gitlens.currentLine.enabled": false,"gitlens.hovers.currentLine.over": "line","gitlens.codeLens.enabled": false,"breadcrumbs.enabled": true,"window.zoomLevel": 0,"git.alwaysShowStagedChangesResourceGroup": true,"javascript.updateImportsOnFileMove.enabled": "always"}