Setting up a new computer
- XCode
- Chrome
- iTerm
- Seil
Go to System Preferences > Trackpad > Point & Click and find "Tracking speed". Move it up one notch.
Go to System Preferences > Dock and find "Size". Move the selector all the way to the right.
Downloading it from the App Store should kick of the installer. Follow the directions there to get XCode up and running.
Sign in to relevant Google accounts
For more info, see this Stack Overflow answer.
- Go to System Preferences > Keyboard > Keyboard > Modifier Keys... and for each keyboard change "Caps Lock Key:" to "No Action"
- Download Seil, open the installer, and install it.
- Open Seil, navigate to Setting > Change the caps lock key, check "Change the caps lock key", and enter "53" for the keycode
Move Seil to Applications if it's not already there. The first step doesn't appear to be necessary, but is probably a good idea in case an OSX update makes some sort of subtle change that disregards Seil when an action is set for the caps lock key.
To start installation of the Command Line Tools:
xcode-select --install
Follow the instructions that pop up to complete installation
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install git
git config --global user.name "Your Name"
git config --global user.email [email protected]
Caching Github password in git.
git config --global credential.helper osxkeychain
When asked to input username and password to access a git repo, follow the directions on this help page.
# Make a directory for git repos
mkdir ~/git
# iTerm color schemes
git clone https://github.com/mbadolato/iTerm2-Color-Schemes ~/git/iTerm2-Color-Schemes
# iTerm fonts
git clone https://github.com/powerline/fonts ~/git/fonts
Color scheme of choice is currently PaulMillr
- iTerm > Preferences > Profile > Default > Colors > Color Presets > Import...
- Navigate to ~/git/iTerm2-Color-Schemes/schemes
- Choose "PaulMillr.itermcolors"
Or choose a bunch of the files and then select "PaulMillr" in the Color Presets dropdown
Font of choice is currently Source Code Pro
# install fonts
cd ~/git/fonts/
./install.sh
iTerm > Preferences > Profile > Default > Text > Change Font
- Font: Source Code Pro for Powerline
- Size: 11px
iTerm > Preferences > Profile > Default > Terminal
Check "Unlimited Scrollback"
Uncheck the following:
- Save lines to scrollback when an app status bar is present
- Save lines to scrollback in alternate screen mode
- Disable save/restore alternate screen
iTerm > Preferences > Profile > Default > Terminal
Change "Left option key acts as:" from "Normal" to "+Esc"
Change Alt+Left to
- Action: Send Escape Sequence
- Esc+: b
Change Alt+Right to
- Action: Send Escape Sequence
- Esc+: f
# install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# set zsh to default shell language
chsh -s /bin/zsh
# exit shell
exit
# then, reopen iTerm
mkdir git
git clone https://github.com/JoeKennedy/dotfiles.git ~/git/dotfiles
rm ~/.vimrc
rm ~/.zshrc
ln -s ~/git/dotfiles/vimrc ~/.vimrc
ln -s ~/git/dotfiles/zshrc ~/.zshrc
# ag
brew install ag
# wget
brew install wget
# ImageMagick (for rails apps)
brew install ImageMagick
# redis
brew install redis
brew services start redis
Ruby setup should be done before Vim setup so that vim is compiled with rvm's version of ruby. Otherwise down the line there may be some strange issues with vim down the line.
As an example, when opening a file in a ruby repo with vim, this message will pop up.
Ignoring <GEM>-<VERSION> because its extensions are not built. Try: gem pristine <GEM> --version <VERSION>
# download and install
curl -sSL https://get.rvm.io | bash -s stable
# use rvm for system ruby
rvm system
Clone using either heroku git:clone
or git clone
, depending on the repo.
Then cd
to that directory.
rvm install <RUBY-VERSION>
gem install bundler
bundle install
# Run one of the two following, either
bundle exec rake db:setup
# Or
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake db:seed
This was mentioned above, but make sure that the ruby installation and setup, specifically rvm, is complete before installing vim.
brew install vim
mkdir ~/.vim/colors
mkdir ~/.vim/tmp
mkdir ~/.vim/backup
# vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
# vim color schemes
git clone https://github.com/chrishunt/color-schemes.git ~/git/color-schemes
cp ~/git/color-schemes/thayer/vimbrant.vim ~/.vim/colors/vimbrant.vim
First, open the vimrc
file
vim ~/.vimrc
Then, in vim, run the following command install plugins
:PluginInstall
# Then, quit vim
:q
Now, all the vim plugins should be set up.
# install it
brew install postgresql
# start it up
brew services start postgresql
# create user database
createdb
brew install heroku
heroku login
# Enter email, password, and two-factor code
To clone repos from Heroku, use:
heroku git:clone -a myapp mydirectory
Replace myapp
with the name of the app to clone and mydirectory
with the
name of directory to clone into
For further reference, see http://gnperdue.github.io/yak-shaving/osx/lisp/2014/11/10/lisp-setup.html
# sbcl
brew install sbcl
# rlwrap (modernizes the sbcl shell a bit)
brew install rlwrap
mkdir ~/tmp && cd ~/tmp
curl -O http://beta.quicklisp.org/quicklisp.lisp
curl -O http://beta.quicklisp.org/quicklisp.lisp.asc
sbcl --load quicklisp.lisp
This will take you into the SBCL shell. In the SBCL shell, run:
(quicklisp-quickstart:install)
(ql:add-to-init-file)
; Press Enter to continue
(sb-ext:exit)
This will exit the SBCL shell. Installation is complete. Before moving on to the
next step, remove the tmp
directory
cd ~ && rm -rf ~/tmp
Enter the SBCL shell with sbcl
and in the shell, install caveman2
(ql:quickload :caveman2)
(sb-ext:exit)
For more info on setting up Caveman2, see this helpful guide.
Put new projects in ~/quicklisp/local-projects
or ~/git
.
With Stack, installing Haskell is super easy.
Simply use homebrew:
brew install stack
As far as I remember, this should install GHC and cabal as well.
Yesod is a sweet MVC framework for Haskell. Yesod bin allows you to run yesod
commands in your terminal.
cabal install yesod-bin
Simply run the stack build
command in a haskell project to get it up and
running. It might take a while the first time, since it's setting up a sandbox.