Git Product home page Git Product logo

dotfiles's Introduction

dotfiles (jstrauss)

Installation

Warning: These are my preferred settings. Use at your own risk!

Using git and the bootstrap script

You can clone the repository; the bootstrapper script will pull in the latest version and copy the files to your home folder.

git clone https://github.com/jstrauss/dotfiles.git && cd dotfiles && source bootstrap.sh

To update, cd into your local dotfiles repository and then:

source bootstrap.sh [--force]

Git-free install

To install these dotfiles without git:

cd; curl -#L https://github.com/jstrauss/dotfiles/tarball/master | tar -xzv --strip-components 1 --exclude={README.md,bootstrap.sh,.osx,LICENSE-MIT.txt}

To update later on, just run that command again.

Add custom commands without creating a new fork of this repo

If you create a file ~/.extra, it will be sourced along with the other dotfiles when bash loads up. You can use this to add custom commands without forking this repository and without the need to worry about committing any private commands to a public repository.

My ~/.extra file looks something like this:

# Git credentials
# Not in repo to avoid others from accidentally committing under my name
GIT_AUTHOR_NAME="Jeff Strauss"
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
git config --global user.name "$GIT_AUTHOR_NAME"
GIT_AUTHOR_EMAIL="[email protected]"
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
git config --global user.email "$GIT_AUTHOR_EMAIL"

Sensible macOS defaults

When setting up a new Mac, you may want to use a script to set a variety of sensible macOS default functionality. This repo contains a .macos, which may be sourced:

source ~/.macos

If you choose to use this file, make sure that you locate the the General UI/UX section and update the four commented lines that set the ComputerName, HostName, LocalHostName, and NetBIOSName to provide your own desired system name:

# Set computer name (as done via System Preferences → Sharing)
# sudo scutil --set ComputerName "<preferred_name>"
# sudo scutil --set HostName "<preferred_name>"
# sudo scutil --set LocalHostName "<preferred_name>"
# sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "<preferred_name>"

Feedback

Suggestions/improvements are welcome and encouraged!

Authors

twitter/jeffreystrauss twitter/jayharris
Jeff Strauss Jay Harris

Thanks to…

dotfiles's People

Contributors

jayharris avatar

Watchers

James Cloos avatar Jeff Strauss avatar

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.