Git Product home page Git Product logo

.dotfiles's Introduction

Dotfiles

blahblahblah whatever man you know what dotfiles are

shamefullesly stolen from fr3fou/dotfiles

Usage:

Create a bare repo

$ git init --bare $HOME/.dotfiles

Create an alias

$ alias dots='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'

Add to upstream

$ dots remote add origin [email protected]:treuks/.dotfiles.git

Alias some stuff

dots config status.showUntrackedFiles no

dots config alias.untracked "status -u ."
dots config alias.untracked-at "status -u"

Usage-er

# Use the dots alias like you would use the git command
dots status
dots add --update ...
dots commit -m "..."
dots push

# Listing files (not tracked by git)
dots untracked
dots status -u .config/

# Listing files (tracked by git)
dots ls-files
dots ls-files .config/fontconfig/

Installing on current setup

TODO: Replace this with a script

git clone --recursive --separate-git-dir=$HOME/.dotfiles [email protected]:treuks/.dotfiles.git /tmp/dotfiles
rsync -rvl --exclude ".git" /tmp/dotfiles/ $HOME/
rm -r /tmp/dotfiles
dots submodule update --init --recursive $HOME/

.dotfiles's People

Contributors

treuks avatar

Watchers

 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.