{"repo":"marlonrichert/zsh-hist","free":true,"listed":false,"github":"https://github.com/marlonrichert/zsh-hist","clone":"git clone https://github.com/marlonrichert/zsh-hist.git","description":"📝 Edit your Zsh history from the command line.","language":"Shell","stars":200,"topics":["zsh","history","history-management","hist","zsh-history","edit","delete","plugin","plugins"],"license":"MIT","category":"cli-tools","readme_excerpt":"zsh-hist Edit your Zsh history, without ever leaving the command line. Installation 1. git clone this repo. 1. Add the following to your /.zshrc file: To update, cd into your clone and git pull . Automatic code formatting Whenever you submit your command line, zsh-hist will automatically format it for you, before it is saved to history. You can also retroactively format your history with hist n . Notes on code formatting For the formatting to be preserved completely when the command is saved history, you need to unsetopt HIST REDUCE BLANKS in your .zshrc file. Otherwise, most of the indentation will get lost. Formatting the code can disable certain crazy uses of global aliases. For example, since the formatting turns most ; s into newlines, declaring ; as a global alias will most of the time simply not have any effect. Since this is not something a normal person would want to do, most users don't need to worry about this. However, if you are a purist and want that the formatting can never change the way Zsh works, then please enable the automatic alias expansion feature below. To disable this feature, add the following to your .zshrc file: Automatic alias expansion (Optional) zsh-hist can automatically expand your aliases before each command line is saved to history. This is disabled by default, but to enable it, add the following to your .zshrc file: Added Undo functionality On any new command line, you can now press Undo to pop the last command from your history into the li","default_branch":null,"files":null,"tree":[],"storefront":"/r/marlonrichert","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/marlonrichert/zsh-hist/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}