Coder Social home page Coder Social logo

ek9 / vcsh-dotfiles Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 2.0 70 KB

simplify the bootstrap procedure of managing your dotfiles with vcsh

Shell 100.00%
vcsh vcsh-dotfiles vcsh-repositories mr myrepos home dotfiles dotfiles-manager dotfiles-resources

vcsh-dotfiles's Introduction

vcsh-dotfiles

vcsh-dotfiles aims to simplify the bootstrap procedure of managing your dotfiles with vcsh. It sets up vcsh, mr, adds usable hooks and lays down simple directory that vcsh repositories can follow.

It is inspired by the bootstrap script in vdemeester/vcsh-home repository. You can check ek9/dotfiles for various repositories that use vcsh-dotfiles.

Features

  • Automatically download and setup vcsh and mr by fetching files via curl/wget and git.
  • Sets up .local/bin for local binaries and shell scripts (added to PATH)
  • vcsh hooks setup to:
    • Enable sparse checkout.
    • Ignore README, LICENSE and other common development files.
    • Make backup copies of files that would be overwritten when cloning.
    • Repositories can have .gitignore files stored in .gitignore.d/<repo-name> of every repository
  • mr .mrconfig setup to source files in:
    • .config/mr/config.d (for vcsh repositories) This allows any repositories to extend mr configuration further.

asciicast

Change Log

Please see CHANGELOG.md for information on recent changes.

Requirements

  • curl or wget
  • git

Install

Run vcsh-dotfiles bootstrap via this curl one-liner:

$ curl https://raw.githubusercontent.com/ek9/vcsh-dotfiles/main/.local/bin/vcsh-dotfiles | bash -s bootstrap

Source ~/.profile to make sure PATH is updated:

$ source ~/.profile

Run mr update to verify the boostrap:

$ mr update

Usage

You can use vcsh-dotfiles to clone vcsh repositories:

$ vcsh-dotfiles clone https://github.com/ek9/shell-config

vcsh-dotfiles supports the following commands:

  • bootstrap - used to bootstrap vcsh, mr and bootstrap vcsh-dotfiles.
  • clone - used to clone vcsh repositories. mr update is always run at the end. Will not try to clone already cloned repository.
  • verify - used to verify existing vcsh-dotfiles setup.
  • help - show help

Examples:

$ vcsh-dotfiles clone https://github.com/ek9/shell-config
$ vcsh-dotfiles verify
$ vcsh-dotfiles help

You can check ek9/dotfiles for various repositories that use vcsh-dotfiles.

Authors

Copyright (c) 2016-2017 ek9 [email protected] (https://ek9.co).

Copyright (c) 2011-2015 Vincent Demeester for portions of code from vdemeester/vcsh-home project.

License

TBA

vcsh-dotfiles's People

Contributors

ek9 avatar richih avatar vdemeester avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sabrehagen eedgar

vcsh-dotfiles's Issues

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.