summaryrefslogtreecommitdiff
path: root/plugins/per-directory-history/per-directory-history.plugin.zsh
AgeCommit message (Collapse)Author
2013-02-28Update to latest per-directory-historyJim Hester
See [https://github.com/jimhester/per-directory-history]
2012-11-16Replace reset-prompt with push-line and accept-lineJim Hester
The in memory history is not updated until an accept line command, so you have to push enter before it is correct, this commit replaces the reset-prompt with an accept-line. It also adds a push-line, to preserve the current editing buffer
2012-09-21Use HISTFILE evironment variable directly rather than copying itJim Hester
Use the HISTFILE environment variable in place of copying it to _per_directory_history_global so that users can change the environment variable after sourcing per-directory-history and have the global variable set correctly
2012-09-20Per directory history pluginJim Hester
This is a implementation of per directory history for zsh, some implementations of which exist in bash[1,2]. It also implements a per-directory-history-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 as far as I am aware. [1]: http://www.compbiome.com/2010/07/bash-per-directory-bash-history.html [2]: http://dieter.plaetinck.be/per_directory_bash