Giter Site home page Giter Site logo

bnr-conf's Introduction

ibnr-conf

This is the config file that is consumed by bnr's bnr script.

Format

Sample Entry 1

emacs "init.el" 0:0 ~/".emacs.d/init.el"

Sample Entry 2

$def$-unity unity.conf 0:1 !

There are 4 columns in this file. Each column should hold a value or have ! to indicate no value.

  1. Program Name - This is the name that identifies the software. Values for this column that begin with $def$ in a - separated value are processed irrespective of whether a matching value is present in the provided install log file.
    Example: The Sample Entry 2 line will be processed always.
  2. Backup File Name - This is the name that will be used to store the dotfile contents.
  3. Properties - Colon (:) separated tuple, that identifies the following properties for the entry,
    1. Super user flag - if 1, indicates whether super user access is required to copy the file into the destination.
    2. Config script flag - if 1, indicates whether there is a separate script that needs to be run to create or restore a backup. The corresponding scripts are located in the config_scripts directory and are identified by appending -bnr.sh to the Program Name column value.
      Example: The Sample Entry 2 line indicates that it requires a script to be executed. This script is identified by the name $def$-unity-bnr.sh inside the config_scripts directory.
  4. Source File Name - The destination path for the dotfile. Values specified within double quotes are taken literallya and double quotes need to be escaped with a backslash. The bnr script performs tilde-expansion on the value for this column. The values are similar to regular bash file path.
    Example: The Sample Entry 1 refers to the dotfile location with a tilde-prefixed file path.

Generally, any text enclosed within double quotes are taken literally.

Getting Started

  • You are encouraged to customize the config file according to your needs.
  • All column values should either have an entry or have ! as a place holder value.
  • All enabled entries in a particular version have been tested on that version of Ubuntu.
  • Any part of a line starting with a # is considered as a comment and is ignored. So, if you don't need a line to be processed, you can simply disable it by commenting it out.
  • If you want to contribute, you can do so by contributing entries alone or if the backup and restore requires a script, the entry and the corresponding script. For more information on this and on how bnr calls the config scripts, please see config_scripts.

Versioning

  • Master branch is the main development branch and the head should have the stable version.

LICENSE

GNU GPLv3

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.