Rich Enhanced Shell History - Contextual shell history for zsh and bash
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Simon Let b99e4a8edc visual install tweak 7 years ago
collect minor changes 7 years ago
common minor changes 7 years ago
daemon user friendly installation draft 7 years ago
img Add screnshot 7 years ago
submodules add bash-preexec as a submodule 7 years ago
.gitmodules change submodule remote url to https 7 years ago
Gopkg.lock add Gopkg files to enable build on older systems 7 years ago
Gopkg.toml add Gopkg files to enable build on older systems 7 years ago
Makefile install improvements 7 years ago
README.md readme improvements 7 years ago
config.toml add config, add pidfile, prevent daemon from runnig more than once 7 years ago
go.mod user friendly installation draft 7 years ago
go.sum go modules 7 years ago
install_helper.sh visual install tweak 7 years ago
rawinstall.sh Add readme and rawinstall 7 years ago
shellrc.sh minor fixes, zsh start daemon silently 7 years ago
uuid.sh add workaround to get uuid on macOS 7 years ago

README.md

master thesis

What

This project is the first phase of my master thesis.

It records shell history with rich set of metadata and saves it locally.

It doesn't change the way your shell and your shell history behaves.

Even this first phase is fairly fast (~40ms).

If you are not happy with it you can uninstall it with a single command (rm -rf ~/.resh).

Why

The ultimate point of my thesis is to provide a drop-in replacement for bash and zsh shell history.

The idea is to provide following:

  • Context-based history
  • Simple way to search whole history by command itself and/or metadata
  • Synchronization across devices
  • And more ...

Prereqisities

  • git
  • golang (>1.11 if possible but we can deal with old ones as well )

Installation

Simplest

Just run bash -c "$(wget -O - https://raw.githubusercontent.com/curusarn/resh/master/rawinstall.sh)" from anywhere.

Simple

  1. Run git clone https://github.com/curusarn/resh.git && cd resh
  2. Run make autoinstall for assisted build & instalation.
    • OR Run make install if you know how to build Golang projects.

Compatibility

Works in bash and zsh.

Tested on:

  • Arch
  • Ubuntu
  • MacOS

Examples

Resh history is saved to ~/.resh_history.json

You can look at it using e.g. tail -f ~/.resh_history.json | jq

screenshot

Issues

You are welcome to create issues: https://github.com/curusarn/resh/issues

Uninstallation

You can uninstall this project at any time by running rm -rf ~/.resh/

You won't lose any recorded history by removing ~/.resh directory because history is saved in ~/.resh_history.json.