Giter VIP home page Giter VIP logo

habitat's Introduction

habitat

###Turning a shell into a home. The habitat project is designed as a simple and easy way to manage bashrc, bash_profile or any other collection of bash scripts that are normally taken as a profile of sorts... Work, debug, webdev etc.

Install

snippet

Usage

To load a module in terminal or in a bashrc/other bash script, simply run: habitat load module_name

Modules?

Habitat operates off of the assumption that you want to organize your scripts logically in directories (or as standalone files) instead of smashing them all in one file as bashrc was designed.

Additionally, we assume that you'll accumulate snippets over the years that you don't necessarily want in your working profile but want to keep organized none the less.

If you have a collection of scripts, you can source a whole directory of them. To do this, place an init.sh script in the directory root that sources the desired components. from there you can run the same: habitat load module_name

Because of this, you can source a bash file saved in your habitat dir like: habitat load module_name

##Why is this different than source script_name? Like in real life, doing something to your habitat leaves some sort of footprint. Unlike in real life, we can track your changes and expose easy to use tools to undo or save this functionality.

##Actions #####habitat

  • load :: loads a habitat module or any bash file
  • undo :: pop the last change from the environment
  • test :: run the tests for this module!

Implementation

Pure BASH!

habitat's People

Contributors

fuag15 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar Brian T avatar

Forkers

fuag15

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.