Steps to install dotfiles on a fresh Mac OS installation:
-
Install developer tools
xcode-select --install
-
Clone this repository
mkdir ~/code && git clone https://github.com/alcesleo/dotfiles.git ~/code/dotfiles && cd ~/code/dotfiles
-
Install things
rake brew
installs most essential softwarerake link
installs the configurationrake vim:install
install all Vim pluginsrake karabiner:load
sets all of the keyboard shortcuts
-
Once you have your SSH keys installed, switch the protocol
git remote set-url origin git@github.com:alcesleo/dotfiles.git
Things that I haven't found a way to automate yet.
- System Preferences
- Accessibility > Zoom
- Displays > Automatically adjust brightness
- iTerm2
- Settings > General > Load preferences from a custom folder
- Finder
- Add favourites by drag and drop:
~
~/code
~/Pictures/Screenshots/
- Add favourites by drag and drop:
Lint VimScript to be extra clean:
pip install vim-vint
vint --style vimrc
rbenv install -l # List available ruby versions
rbenv install 2.1.2 # Install the ruby you want
rbenv global 2.1.2 # Set it as the default
# Install the global system gems
rake gems
Don't forget to run rbenv rehash
after installing a gem that adds commands.
The railsrc
and rails_template.rb
files take over the rails new
command
and make it automatically do a lot of things that I tend to do directly after
running rails new
anyway.
You can also install rbenv-ctags to allow tag jumps into the standard library too.
Make sure to bring your ~/.ssh
with you when you reinstall.
If you copied it over and get an error like this:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0744 for '/home/geek/.ssh/id_rsa' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /home/geek/.ssh/id_rsa
Then you need to set the permissions correctly, like so:
sudo chmod 600 ~/.ssh/id_rsa*
sudo chmod 644 ~/.ssh/known_hosts
sudo chmod 755 ~/.ssh
# Make sure ssh-agent is running
$ eval $(ssh-agent)
Agent pid 98949
# Add the key
$ ssh-add
Use GPG Suite to handle GPG keys
If you get this error, you need to uncomment charset utf-8
in ~/.gnupg/gpg.conf
gpg: conversion from `US-ASCII' to `utf-8' failed: Illegal byte sequence
gpg: conversion from `utf-8' to `US-ASCII' failed: Illegal byte sequence