Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/van51/subtree_history
- Owner: van51
- License: mit
- Created: 2017-03-01T19:33:18.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-03T10:26:24.000Z (over 6 years ago)
- Last Synced: 2024-12-10T19:16:06.177Z (about 2 months ago)
- Topics: bash, directory, history, optional, script, subtree
- Language: Shell
- Size: 1.95 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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