Coder Social home page Coder Social logo

dotfiles's Introduction

Some opinionated shell setup for OS X.

This includes some standard config files for git, bash, rvm, nvm, and command line scripts.

To install:

$ git clone [email protected]:sveinhal/dotfiles.git ~/.dotfiles # creates a hidden .dotfiles directory
$ ~/.dotfiles/script/bootstrap #installs .bashrc, etc. Does not overwrite anything

Bootstrap

The bootstrap script works by finding all files in the .dotfiles directory named dot.* and creates a symlink ~/.foo -> .dotfiles/some/path/dot.foo. This includes among other things .zshrc. This files is executed on every new shell.

.zshrc

The .zshrc script will find all files *.sh and *.zsh in the .dotfiles directory and source them. This allows one to place various small well-contained files around the .dotfiles directory. E.g put git alias config in .dotfiles/git/alias.sh or zsh prompt config in .dotfiles/zsh/prompt.zsh, etc. To disable a file, just rename it to e.g. foo.sh.disabled (or some other name that does not end in .sh).

The files are sorted numerically before being sourced, so to make the files be sourced in a certain order, you can prefix the files with a number. Say .dotfiles/some/path/999-should-happen-last.sh or .dotfiles/dir/000-important.sh

$PATH

In addition to setting up various tools, this also adds ~/.dotfiles/bin to your $PATH making some bundled scripts and tools available.

dotfiles's People

Contributors

sveinhal avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

audungk

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.