Skip to content
lordkagePublic

About

Quick set of scripts to help setup and maintain a Version Controlled Home Directory

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

33 Commits

Folders and files

Repository files navigation

VCH Setup

Version Controled Home Setup Scripting.

These scripts help me manage multiple repositories which combine to form a version controled home.

Software

Giving credit to the software projects I am wrapping

Assumed Software

  • git
  • brew (Mac OS)
  • internet utils (Linux)

Quick Start

Run the thing

Basic Usage

Adding new dot repo

  • add-dot.sh [dot_repo_name]
  • mrAddDot.sh [dot_repo_name]

Older Information

grep forsaken EXAMPLE.vcsh | awk -F'~>' '{ print $NF }' | sed -e 's/tmux/vimrc/g'

vcsh init vim
vcsh vim add ~/.vimrc ~/.vim
vcsh write-gitignore vim
vcsh vim add -f .gitignore.d/vim
vcsh write-gitignore vim
vcsh vim add .gitignore.d/vim
vcsh vim commit -m 'Initial commit of my Vim configuration'
# optionally push your files to a remote
vcsh vim remote add origin <remote>
vcsh vim push -u origin master
# from now on you can push additional commits like this
vcsh vim push

Assumptions

  • vcsh installed, up-to-date: older than 2014-02-21
  • git-crypt installed
  • VCSH repo named 'foo'

Actions

  • Update your vcsh repo vcsh upgrade foo

  • Create the gitattributes file for this repo

    mkdir ~/.gitattributes.d
    touch ~/.gitattributes.d/foo
  • Add it to git your git repo vcsh foo add ~/.gitattributes.d/foo

  • Follow the readme of git-crypt until the .gitattributes part

  • Instead of .gitattributes, put the config in ~/.gitattributes.d/foo

    cat >~/.gitattrubutes.d/foo<<EOD
    secret filter=git-crypt diff=git-crypt
    passwds filter=git-crypt diff=git-crypt
    *magic* filter=git-crypt diff=git-crypt
    EOD
  • Continue the readme of git-crypt

    git-crypt init
    git-crypt add-gpg-user DFE3287A

About

Quick set of scripts to help setup and maintain a Version Controlled Home Directory

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages