Giter Site home page Giter Site logo

zhangaz1 / dotfiles-24 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nicksp/dotfiles

0.0 0.0 0.0 1.6 MB

My OS X environment

Home Page: https://github.com/nicksp/dotfiles

License: MIT License

CoffeeScript 0.45% CSS 0.98% Python 1.30% Shell 60.57% Clean 31.51% JavaScript 4.04% Perl 1.15%

dotfiles-24's Introduction

Nick Plekhanov's Dotfiles

This is a collection of dotfiles and scripts I use for customizing OS X to my liking and setting up the software development tools I use on a day-to-day basis. They should be cloned to your home directory so that the path is ~/dotfiles/. The included setup script creates symlinks from your home directory to the files which are located in ~/dotfiles/.

Terminal.app

The setup script is smart enough to back up your existing dotfiles into a ~/dotfiles_old/ directory if you already have any dotfiles of the same name as the dotfile symlinks being created in your home directory.

I also prefer zsh as my shell of choice. As such, the setup script will also clone the oh-my-zsh repository from my GitHub. It then checks to see if zsh is installed. If zsh is installed, and it is not already configured as the default shell, the setup script will execute a chsh -s $(which zsh) command. This changes the default shell to zsh, and takes effect as soon as a new zsh is spawned or on next login.

So, to recap, the install script will:

  • back up any existing dotfiles in your home directory to ~/dotfiles_old/
  • create symlinks to the dotfiles in ~/dotfiles/ in your home directory
  • clone the oh-my-zsh repository from my GitHub (for use with zsh)
  • check to see if zsh is installed, if it isn't, try to install it
  • if zsh is installed, run a chsh -s to set it as the default shell

Features

Installation

$ git clone https://github.com/nicksp/dotfiles.git ~/dotfiles
$ cd ~/dotfiles
$ chmod +x setup.sh
$ ./setup.sh

Remotely install using curl

Alternatively, you can install this into ~/dotfiles remotely without Git using curl:

sh -c "`curl -fsSL https://raw.github.com/nicksp/dotfiles/master/remote-setup.sh`"

Or, using wget:

sh -c "`wget -O - --no-check-certificate https://raw.githubusercontent.com/nicksp/dotfiles/master/remote-setup.sh`"

Customize

Local Settings

The dotfiles can be easily extended to suit additional local requirements by using the following files:

~/.zsh.local

If the ~/.zsh.local file exists, it will be automatically sourced after all the other shell related files, thus, allowing its content to add to or overwrite the existing aliases, settings, PATH, etc.

~/.gitconfig.local

If the ~/.gitconfig.local file exists, it will be automatically included after the configurations from ~/.gitconfig, thus, allowing its content to overwrite or add to the existing git configurations.

Note: Use ~/.gitconfig.local to store sensitive information such as the git user credentials, e.g.:

[user]
  name = Nick Plekhanov
  email = [email protected]

OS X Defaults

My favorite part of this repo is the set-defaults script for OS X.

Resources

I actively watch the following repositories and add the best changes to this repository:

License

The code is available under the MIT license.

dotfiles-24's People

Contributors

nicksp avatar tomwagner 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.