Skip to content

svrvt/vc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vc-home

vc-home 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:

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.
  • Autocomplete commands and list of repositories to clone for zsh

Requirements

  • curl or wget
  • git
  • rename for one hook that is triggered if the paths of cloned files are busy
  • lynx and jq or gh autorization to parsing the list of repositories for autocomplete

Install

Run vc-home bootstrap via this curl one-liner:

$ curl https://raw.githubusercontent.com/svrvt/vc/main/bin/vc-home | bash -s bootstrap

Usage

You can use vc-home to clone vcsh repositories:

$ vc-home clone awesome #relevant to "vcsh clone https://github.com/svrvt/vc_awesome"

vc-home supports the following commands:

  • bootstrap - used to bootstrap vcsh, mr and bootstrap vc.
  • clone <Tab> - used to clone vcsh repositories. mr co is always run at the end.
  • verify - used to verify existing vc-home setup.
  • help - show help

Examples:

$ vc-home clone rofi #relevant to "vcsh clone https://github.com/svrvt/vc_rofi"
$ vc-home verify
$ vc-home help

Authors

Copyright (c) 2024 Rustam Uzairov svrvt/vc

Copyright (c) 2024 Caleb Maclennan for pre/post-merge-unclobber hooks, que supporting script and idea for organize repo.

Copyright (c) 2016-2022 ek9 for vcsh-dotfiles script and SparseCheckout hooks.

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

License

TBA

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published