| 1 |
# vim:ft=zsh |
| 2 |
# Avoid configuration sourcing in history |
| 3 |
# © 2013 Paul Seyfert and contributors (see also: LICENSE) |
| 4 |
|
| 5 |
# ensure history gets actually written (shell gets closed before history gets |
| 6 |
# written otherwise) |
| 7 |
setopt inc_append_history |
| 8 |
|
| 9 |
HISTSIZE=100 |
| 10 |
SAVEHIST=100 |
| 11 |
|
| 12 |
# Push current history to stack (make e.g. sourcing of configuration |
| 13 |
# inaccessible to user). The stack won't be poped. Set HISTFILE to ~/.shellex |
| 14 |
# and read history from there. |
| 15 |
fc -p ~/.shellex_history |