$ chflags nohidden ~/Library
Show hidden files
This can also be done by pressing command
+ shift
+ .
.
$ defaults write com.apple.finder AppleShowAllFiles YES
$ defaults write com.apple.finder ShowPathbar -bool true
$ defaults write com.apple.finder ShowStatusBar -bool true
$ xcode-select --install
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install mas
$ mas signin [email protected]
tap 'caskroom/cask'
brew 'bash-completion'
brew 'git'
brew 'heroku'
brew 'mysql'
brew 'node'
brew 'postgresql'
brew 'rbenv'
brew 'ruby-build'
brew 'sqlite3'
brew 'yarn', args: ['without-node']
brew 'redis'
cask 'atom'
cask 'firefox'
cask 'gimp'
cask 'google-chrome'
cask 'opera'
cask 'spectacle'
cask 'spotify'
cask 'vlc'
mas 'Slack', id: 803453959
mas 'GIPHY Capture, id: 668208984
$ brew bundle install
- Keyboard > Text > Disable "Correct spelling automatically".
- Keyboard > Key Repeat "Fast".
- Keyboard > Delay Until Repeat "Short".
- Security and Privacy > Firewall > On
- Security and Privacy > FileVault > On
- Security and Privacy > General > App Store and identified developers
- Security and Privacy > General > Require password immediately
- File Sharing > Off
- Users & Groups > Login Items > Spectacle
Host example
HostName example.com
User example-user
IdentityFile key.pem
Be sure to accept all defaults when entering the following command:
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
[user]
name = First Name
email = [email protected]
[github]
user = username
[alias]
a = add
ca = commit -a
cam = commit -am
s = status
pom = push origin master
pog = push origin gh-pages
puom = pull origin master
puog = pull origin gh-pages
cob = checkout -b
[color]
ui = true
[credential]
helper = osxkeychain
$ cat ~/.ssh/id_rsa.pub
Use the output of the last command to authorize a new SSH public key for GitHub at: https://github.com/settings/keys.
Test out the new credentials with:
$ ssh -T [email protected]
# Better ls
alias ls="ls -Gh"
alias ll="ls -la"
# Tab complete
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
# Brew stuff
alias brewup='brew update; brew upgrade; brew prune; brew cleanup; brew doctor'
export PS1='\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\n\[\033[32m\]$(__git_ps1) \[\033[m\]\$ '
export GIT_PS1_SHOWDIRTYSTATE=true
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
$ source ~/.bash_profile
$ echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
$ source ~/.bash_profile
$ rbenv install 2.4.2
$ rbenv global 2.4.2
$ ruby -v
$ gem install rails -v 5.1.3
$ rbenv rehash
$ rails -v
Completed during the Brewfile steps.
To have launchd start mysql at login:
$ brew services start mysql
To have launchd start postgresql at login:
$ brew services start postgresql
To have launchd start postgresql at login:
$ brew services start redis
$ mkdir ~/Gems
$ mkdir ~/NodeModules
$ mkdir ~/Sites
$ sudo scutil --set HostName new_hostname
$ sudo scutil --set LocalHostName new_hostname
$ sudo scutil --set ComputerName new_computer_name
verison number could possibly change, check version number here: https://github.com/caskroom/homebrew-cask/blob/master/Casks/private-internet-access.rb
$ open "/usr/local/Caskroom/private-internet-access/v72/Private Internet Access Installer.app"