Zsh - Git repository history
- To add a history management in every repository
- Originally, this plugin was developed for Zsh.
- Named as "zgithist"
This plugin automatically collects command history in every git repository.
When you want to see history, type zgithist
.
- 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.
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.
- To support Zsh autoload
- NYSL (http://www.kmonos.net/nysl/) 0.9981
This project was moved from my gist