X-Git-Url: https://src.twobees.de/?a=blobdiff_plain;f=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fper-directory-history%2FREADME.md;fp=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fper-directory-history%2FREADME.md;h=0000000000000000000000000000000000000000;hb=1a8e170bbe5c6641a26ab1ce2e6ce6c5c1faa4cd;hp=69854aa3891083b0598b32c9a8a73942ca7b8c16;hpb=475ba35502579302593f4735c853c49ef1845dcb;p=dotfiles.git diff --git a/stow/oh-my-zsh/.oh-my-zsh/plugins/per-directory-history/README.md b/stow/oh-my-zsh/.oh-my-zsh/plugins/per-directory-history/README.md deleted file mode 100644 index 69854aa..0000000 --- a/stow/oh-my-zsh/.oh-my-zsh/plugins/per-directory-history/README.md +++ /dev/null @@ -1,48 +0,0 @@ -per-directory-history plugin ----------------------------- - -This plugin adds per-directory history for zsh, as well as a global history, -and the ability to toggle between them with a keyboard shortcut. This is a -bundle of the [official plugin by @jimhester][5]. - -To use it, add `per-directory-history` to the plugins array in your zshrc file: - -```zsh -plugins=(... per-directory-history) -``` - -This is an implementation of per-directory history for zsh, some implementations -of which exist in bash[1][],[2][]. It also implements a toggle-history function -to change from using the directory history to using the global history. In both -cases the history is always saved to both the global history and the directory -history, so the toggle state will not effect the saved histories. Being able to -switch between global and directory histories on the fly is a novel feature. - -## Usage - -The default mode is per directory history, interact with your history as normal. - -Press ^G (the Control and G keys simultaneously) to toggle -between local and global histories. If you would prefer a different shortcut to -toggle set the `PER_DIRECTORY_HISTORY_TOGGLE` environment variable. - -## Configuration - -* `HISTORY_BASE` is a global variable that defines the base directory in which the - directory histories are stored (default `$HOME/.directory_history`). -* `per-directory-history-toggle-history` is the function to toggle between local - and global histories. -* `PER_DIRECTORY_HISTORY_TOGGLE` is the key binding used to run the toggle-history - function above (default `^G`) - -## History - -The idea/inspiration for a per directory history is from [Stewart MacArthur][1] -and [Dieter][2], the implementation idea is from [Bart Schaefer][3]. The -implementation is by [Jim Hester][4] in September 2012. - -[1]: http://www.compbiome.com/2010/07/bash-per-directory-bash-history.html -[2]: http://dieter.plaetinck.be/per_directory_bash -[3]: https://www.zsh.org/mla/users/1997/msg00226.html -[4]: https://jimhester.com -[5]: https://github.com/jimhester/per-directory-history