Giter VIP home page Giter VIP logo

d's Introduction

d

I'm implementing another dotfile manager ๐Ÿ˜ฎโ€๐Ÿ’จ

  • I stopped working on dotfox because I lost confidence in the social and technical leadership for the language I was using, Nim
  • dotmgr was supposed to replace it, but it grew too much in scope and it doesn't work on all platforms (Cygwin)

I've learned some things:

  • Continue to use symlinks
  • Continue to implement undeploy
  • Continue to properly test
  • Explicitly specify if file/directory
    • That way, a directory can exist at source location (with multiple choices)
  • Implement interactive mode
  • Implement command to interactively swap out file
  • Make status updates one line

Additional Goals

  • Heapless (TODO)
  • Multi-platform

Summary

Config

Configure which files to manage with an INI-style file.

First, label the location of the source and target directories. All paths are relative to these

source_root_dir = $pwd/source
target_root_dir = $pwd/target

Then, come the variables. By default, $home and $pwd (relative to the file) are defined, but you can define more (TODO)

[vars]
cfg = ${XDG_CONFIG_HOME:-$HOME/.config}
data = ${XDG_DATA_HOME:-$HOME/.local/share}
state = ${XDG_DATA_HOME:-$HOME/.local/state}

Lastly, list your entries. There are two types:

Tags are TODO

[entry]
path = .bashrc
what = file
tags = [Bash]

[entry]
source = $cfg/X11/xinitrc
target = $home/.xinitrc
what = file
tags = [X11]

d's People

Contributors

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