Skip to content

A zsh plugin to quickly isolate shell history recording.

License

Notifications You must be signed in to change notification settings

leonjza/history-here

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

history-here

An oh-my-zsh plugin that bind's ^G to quickly toggle the current shell history file location. To use it, add history-here to the plugins array in your zshrc file.

plugins=(... history-here)

Alternatively, source the history-here.plugin.zsh file (after cloning) with:

source ~/.oh-my-zsh/custom/plugins/history-here/history-here.plugin.zsh

The plugin source code needs to be in ~/.oh-my-zsh/custom/plugins (either cloned there or symlinked).

configuration

You can configure automatic isolation of shell history by setting the HISTORY_HERE_AUTO_DIRS array. If the current working directory changes to any of the paths in this array (which is lazily matched), history isolation would automatically occur.

export HISTORY_HERE_AUTO_DIRS=(/Users/foo/work /root/work)

Note, if you set a small value of something like pa, changing to any directory containing pa in the path would trigger history isolation.

About

A zsh plugin to quickly isolate shell history recording.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages