Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/van51/subtree_history

Optional subtree history for bash
https://github.com/van51/subtree_history

bash directory history optional script subtree

Last synced: 1 day ago
JSON representation

Optional subtree history for bash

Awesome Lists containing this project

README

        

# Optional Subtree History

As the name says this repository offers the flexibility to optionally save a different bash history per subtree in the directory structure.
In other words you can have a different bash history for different projects.

Inspired by https://gist.github.com/leipzig/1651133

*rfind* function is based on the following answer http://unix.stackexchange.com/a/35265/105444

# Installation

In order to install this git do the following:

```bash
$ git clone https://github.com/van51/subtree_history.git
$ cd subtree_history
$ chmod +x ./install.sh
$ ./install.sh
```

# Usage

In order to initialize a "local" history in a subtree starting at the directory *foo*, you can do one of the following:

```bash
$ local_dir_history /path/to/foo
```
or
```bash
$ cd /path/to/foo
$ local_dir_history