Code Monkey home page Code Monkey logo

config's Introduction

Config

Config is a basic checklist I follow to set up a new Mac's development environment. It gets me up to speed with Git, Ruby, GitHub, Jekyll, and more so I can more quickly get back to coding.

Contents

File Description
.bash_profile Customizes the Terminal.app prompt and echoes the currently checked out Git branch.
.gitconfig Global Git configuration to specify my name and email, shortcuts, colors, and more.
.gitignore The ignore file from twbs/bootstrap that I use everywhere.

Shell script (WIP)

This repository includes a shell script for executing the bulk of the configuration process. First, install and agree to terms for Xcode, then download and run Strap. Then, enter the following in Terminal:

curl https://raw.githubusercontent.com/mdo/config/master/config.sh > ~/Downloads/config.sh && bash ~/Downloads/config.sh

Many of the included macOS Terminal customizations are taken from https://github.com/pawelgrzybek/dotfiles and https://github.com/mathiasbynens/dotfiles.

Checklist

1. Prep OS X

  • Download and install latest version of Xcode from the Mac App Store.
  • Open Terminal and trigger Xcode Command Line Tools installation: xcode-select --install

Be sure to open Xcode and agree to the terms of use.

2. Prep Terminal.app

3. Secure Git(Hub) access

4. GitHub dev setup

  • Download the Strap setup script for GitHub's foundational development setup.
  • Clone the github/github repository and run script/bootstrap.

5. Setup Ruby

Installing and managing Ruby with rbenv allows us to specify versions of Ruby on a per-project basis. It also means we can avoid running sudo commands for installing gems and more as it's not affecting OS X's system Ruby.

Having trouble with nokogiri? See https://stackoverflow.com/a/41491487.

6. Additional dependencies

  • Install node via Homebrew: brew install node.
  • Install Sass, Jekyll, and Rouge: gem install bundler sass jekyll rouge.

7. Customize things

  • Disable LCD font smoothing
  • Hide desktop icons with defaults write com.apple.finder CreateDesktop false; killall Finder
  • Set sidebar icons to Small

Use it yourself

Fork this repo, or just copy-paste things you need, and make it your own. Please be sure to change your .gitconfig name and email address though!

Works on my machine

Yup, it does. Hopefully it does on yours as well, but please don't hate me if it doesn't.

<3

config's People

Contributors

mdo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

config's Issues

Homebrew

I am curious to know why you do not include Homebrew on here.

Additional bash script enhancements

  • Add parameter for first or subsequent runs (so we can skip general stuff)

  • Load favorite Terminal theme

    curl https://raw.githubusercontent.com/mdo/ocean-terminal/master/terminal-ocean-dark.terminal > $HOME/Downloads/terminal-ocean-dark.terminal
    open ~/Downloads/terminal-ocean-dark.terminal
  • Bluetooth and sound in menu bar

  • Mouse and trackpad speed, right click

  • Disable sound effects

  • Disable auto-dim screen

There is no * for uncommited changes

Hello,

I'm a fan of your tools here. I've been using it for sometime. Some other git prompts , adds an * for uncommited changes.

Can you add the same ?

I'm showing an example where there was changes but there was no * here. I'm also attaching an example where you can see an * for uncommited changes. I will attached this prompt too.

screen shot 2016-12-09 at 4 20 15 pm

screen shot 2016-12-09 at 4 26 26 pm

[git-prompt.txt](https://github.com/mdo/config/files/642125/git-prompt.txt) [bash_profile_course.txt](https://github.com/mdo/config/files/642126/bash_profile_course.txt)

Thanks,

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.