Giter Club home page Giter Club logo

myrc.d's Introduction

myrc

Symlinking CLI tool for dotfiles (or any other configuration files organized in a directory).

Usage

In the directory from where the app is started, the install.sdl manifest file is required: there should be specified folder installation details:

# the "install" section is mandatory
install {
  # executes specified commands, unless requirements below met
  exec "git submodule -q update --init" {
    # requirements:
    // file should be created in $PWD
    creates:file `LS_COLORS/.git`
    creates:file `zsh-completions/.git`
    creates:file `zsh-syntax-highlighting/.git`
  }

  ln "bashrc", "~/.bashrc"
  ln "bash_profile", "~/.bash_profile"
}

Without arguments - shows current state:

me@host:~/doftiles$ myrc
/home/me/dotfiles:
+ /home/me/dotfiles/bashrc -> /home/me/.bashrc
- /home/me/dotfiles/bash_profile # no such file or directory (need -> /home/me/.bash_profile)

The install sub-command issues the install process:

me@host:~/doftiles$ myrc
/home/me/dotfiles install:
  /home/me/dotfiles/bashrc -> /home/me/.bashrc
  /home/me/dotfiles/bash_profile -> /home/me/.bash_profile

Install

Operating system Link
Ubuntu 22.04 (Jammy Jellyfish) ↗️
Ubuntu 20.04 (Focal Fossa) ↗️
macOS ↗️

Build

Install D compiler, cd into directory and run dub:

dub build --build=release

Build issues

documented here

myrc.d's People

Contributors

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