Giter VIP home page Giter VIP logo

dotfiles's Introduction

A bare git repo containing my dotfiles.

Installation

Add the repo itself to a local .gitignore to prevent any future recursion issues

echo "dotfiles" >> .gitignore

Clone the repo

git clone [email protected]:Ben10164/dotfiles.git $HOME/dotfiles # clone to home
# if using https, use https://github.com/Ben10164/dotfiles

Create an alias for easy interaction with the bare repo

alias config='/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'

this line can be added to .zshrc (recommended) or .zshenv (not recommended) for making interacting with the repo easier in the future

i.e. config pull will update the .config directory

Backup any files/folders that conflict with my config

mkdir -p .config-backup && \
config checkout 2>&1 | \
egrep "\s+\." | \
awk {'print $1'} | \
xargs -I{} rsync -R {} .config-backup/

if there is an issue where it is throwing an error not being able to find files named M, D, A or any other git status character, change the print $1 to be print $2 as this means the repo has already been set up

config checkout
config config --local status.showUntrackedFiles no

dotfiles's People

Contributors

ben10164 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.