Skip to content

.files, including ~/.osx — sensible hacker defaults for OS X

License

Notifications You must be signed in to change notification settings

samwize/dotfiles

 
 

Repository files navigation

My dotfiles (forked from Mathias’s)

Dotfiles is great for setting up a new Mac.

All files (excluding those listed in bootstrap.sh) will be copied to your home directory when you run source bootstrap.sh. So feel free to add any "dotfiles" to this repository, except your password.

Backup old computer

# Backup Atom's community packages installed
apm list --installed --bare > ~/dotfiles/backup/atom/package-list.txt

# Backup Xcode Keybindings.. todo

SENSITIVE stuff that has to be backup using external hard drive:

# Example:
cp ~/.3T/robo-3t/1.2.1/robo3t.json /BACKUP/DRIVE/

Time Machine back up and restore can be used. But unreliable with incomplete restoration possible, eg. when Migration Assistant encounter file write error.

Instructions for a new computer

1. Install brew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2. Install git

brew install git

3. Download dotfiles

cd ~
git clone https://github.com/samwize/dotfiles && cd dotfiles

4. Auto setup with dotfiles

Inspect these files first: .bash_prompt, .exports, .aliases, .functions - it's your responsibility!

Once confirmed all good, run:

source bootstrap.sh

5. Install apps, configure mac

# Install more brew stuff and apps
./brew.sh

# Install development apps, tools and setting them up
./setup-dev.sh

# Sensible macOS defaults
./.macos

6. Setup Oh-my-zsh

Setup samwize's oh-my-zsh.

git clone https://github.com/samwize/oh-my-zsh ~/.oh-my-zsh
cd ~
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
chsh -s /bin/zsh

My zsh uses agnoster theme, which requires Powerline font. In iTerm, go to Preferences > Profiles > Text > change font to eg "Meslo LG M DZ for Powerline" (download and install).

I have a preference for using solarized dark theme. In iTerm, you can change in Preferences > Profiles > Color > Color Presets

7. Other Manual Configurations

git config --global user.name YOUR_NAME
git config --global user.email YOUR_EMAIL

Junda's Changes

My fork is based on mathiasbynens (the original dotfiles). There are others

  • .osx: Removed changes to: Computer name, Desktop configurations such as icon snap to grid, Notification bar, natural scroll, etc. Prefixed my comments with JD:
  • .aliases: Added for my productivity
  • Brew.sh: Disable brew install which I don't always use

About

.files, including ~/.osx — sensible hacker defaults for OS X

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 95.2%
  • Vim Script 4.8%