Giter Site home page Giter Site logo

dotfiles's Introduction

dotfiles

Totally ripped from https://github.com/mathiasbynens/dotfiles. That guy is awesome.

Laptop Setup Guide

I eventually need to automate all of these steps. I tried with boxen and was not too happy with the results. So until then, here is goes;

install apps via app store

  • 1Password
  • Bear
  • Divvy
  • Slack

install some other apps

some mac defaults

defaults write -g ApplePressAndHoldEnabled -bool false

install homebrew http://brew.sh

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

install brew packages

brew install dnsmasq
brew install gnu-sed
brew install hub
brew install the_silver_searcher
brew install tmux
brew install vim

brew cleanup

run dnsmasq services

sudo brew services start dnsmasq

github app setup

  • go through setup
  • Install Command Line Tools

install dotfiles

# Edit /etc/shells and add /usr/local/bin/bash
chsh -s /usr/local/bin/bash $USER
  • clone dotfiles/ to ~/ using Github App
ln -sf ~/dotfiles/gitconfig ~/.gitconfig
ln -sf ~/dotfiles/gitconfig-kelvin ~/.gitconfig-kelvin
ln -sf ~/dotfiles/bin ~/bin
ln -sf ~/dotfiles/tmux.conf ~/.tmux.conf
ln -sf ~/dotfiles/inputrc ~/.inputrc
ln -sf ~/dotfiles/psqlrc ~/.psqlrc

setup terminal

set some preferences

  • Set Dracula as the Default Profile
  • Set font to Roboto Mono Light 20pt
  • Advanced > Bell > [Disable] All but Visual Bell
  • Advanced > Keyboard > [Enable] Use Option as Meta key

setup dropbox

selective sync

  • Application Support
  • Screenshots
  • Wallpapers

turn off camera uploads

Preferences > Import > [ ] Enable camera uploads

setup divvy

  • Enable accessibility via System Preferences > Security > Privacy > Accessibility > [ ] Divvy
  • Start Divvy at login
  • Show Divvy in menu bar

Shortcuts

  • Mark as global shortcut for each
CTRL + ALT + LEFT ARROW  # left
CTRL + ALT + RIGHT ARROW # right
CTRL + ALT + UP ARROW    # fullscreen

1password setup

set keychain via dropbox

~/Dropbox/Application Support/1Password.agilekeychain

choose security settings

  • Lock after 5 mins
  • Lock when closed

set regular settings

  • Un-check Rich Icons
  • Always keep mini running

chrome setup

  • login to Kelvin account & link data
  • login to The Weekend Programmer account & link data
  • add person & login to personal account

ssh keys setup

  • clone .ssh/ to ~/ using Github App
cd ~/.ssh
ssh-keygen -t rsa
# 1. put into id_rsa.Zacharys-MacBook-Pro
# 2. use a passphrase
# 3. update access_keys file
./bin/sshk-update
  • ssh into all my servers and run it
git pull
./bin/sshk-update

add ssh passphrase to keychain

/usr/bin/ssh-add -K ~/.ssh/id_rsa.Zacharys-MacBook-Pro

update github with new public key

pbcopy < ~/.ssh/id_rsa.Zacharys-MacBook-Pro.pub

update some system preferences

general

  • Use dark menu bar and dock
  • Default web browser: Google chrome
  • [Disable] Use LCD font smoothing

desktop & screen saver

  • Screen Saver -- [Enable] Show with clock -- Hot corner bottom right to start screensaver

dock

  • [Disable] Animate opening applications
  • [Enable] Automatically hide and show the dock

security & privacy

  • Change require password to Immediately
  • Show a message when the screen is locked "it's the little things ... [email protected]"

spotlight

Search Results

  • [Disable] All, except Applications and System Preferences
  • [Disable] Allow Spotlight Suggestions in Spotlight and Look up

Privacy

  • Add /opt

notifications

Click on the hamburger at the top right > Remove everything except reminders

energy saver

  • Turn display off after 15 minutes both Battery & Power Adapter
  • [Disable] Power Nap on both Battery & Power Adapter

keyboard

  • Key Repeat: Fast
  • Delay until Repeat: Short
  • [Enable] Use all F1, F2, etc. keys...
  • Turn off brightness after 10 secs

mouse

  • [Disable] Scroll direction: natural

trackpad

Point & Click

  • [Disable] Look up & data detectors
  • [Enable] Secondary click
  • [Enable] Tap to Click
  • Click: light
  • [Disable] Force Click and haptic feedback

Scroll & Zoom

  • [Disable] Scroll direction: natural

App Store

  • [Enable] Everything, except Automatically download apps purchased...

users & groups

Login items:

  • Dropbox
  • Divvy

ohmyzsh setup

# Install ohmyzsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

# Give it some links
ln -sf ~/dotfiles/zshrc ~/.zshrc
ln -sf ~/Dropbox/Application\ Support/zsh_history ~/.zsh_history
mkdir -p ~/.zsh/themes
ln -sf ~/dotfiles/zulu.zsh-theme ~/.zsh/themes/zulu.zsh-theme

# On Linode
ln -sf ~/dotfiles/zsh_linode ~/.zsh/zsh_linode.zsh

# On Mac
ln -sf ~/dotfiles/zsh_mac ~/.zsh/zsh_mac.zsh

vim setup

ln -sf ~/dotfiles/vimrc ~/.vimrc

# Setup tmp dir for swp files
mkdir -p ~/.tmp

# Install color theme
mkdir -p ~/.vim/colors
ln -sf ~/dotfiles/init/bw.vim ~/.vim/colors/bw.vim

# Setup Vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim +PluginInstall +qall

setup Dash

General

  • [Enable] Launch at Login
  • Set up Syncing -> Set Sync Folder to Dropbox

setup psql

  • Install Postgres.app
  • Create some links for our history:
ln -sf ~/Dropbox/Application\ Support/psql ~/.psql

dotfiles's People

Contributors

zacharymarshal avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

cityscapedview

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.