kmhjs / zgithist

Git repository history plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zgithist

Zsh - Git repository history

Purpose

  • To add a history management in every repository
  • Originally, this plugin was developed for Zsh.
    • Named as "zgithist"

Usage

This plugin automatically collects command history in every git repository. When you want to see history, type zgithist.

Installation

  • Add some lines to your .zshenv from .zshenv of this project.
  • Add some lines to your .zshrc from .zshrc of this project.
  • Source zgithistory.zsh in your .zshrc.

Note

This script will save history data in $ZGITHISTORY_DIR with base64 coded repository name. If there are 2 or more same name repositories, they will be treated as same repository. If you want to limit maximum line in history file, please set variable $ZGITHISTORY_MAXHIST in .zshenv by following sample .zshenv.

Todo

  • To support Zsh autoload

Licence

Others

This project was moved from my gist

About

Git repository history plugin

License:Other


Languages

Language:Shell 100.0%