diff --git a/docs/posts/2024/february/26.md b/docs/posts/2024/february/26.md new file mode 100644 index 00000000..5a9299f4 --- /dev/null +++ b/docs/posts/2024/february/26.md @@ -0,0 +1,52 @@ +--- +title: Alls Shell that ends Shell +date: 2024-02-26 +authors: + - practicalli +categories: + - practicalli +tags: + - clojure +--- + +**Thoughts for the week** + +Tweaks for Zsh history + + + +## Zsh + +Every command typed at the prompt will be added to the Zsh history. This provides a very efficient way to repeat commands. + +When an incorrect command is used the usefulness of the history can be deminished, as those incorrect commands are also part of the history. + +Rather than navigating the history and changing the command, use the buildin `fd` command to edit the Zsh history. + +The `fd` command is a simple tool to keep the Zsh history clean of incorrect commands. A specific command can be edited and changed by specifying its number in the history order. Or the whole history can be edited, especially useful if the command should be completely deleted. + + +!!! INFO "Avoid editing history directly" + Use `fd` command to edit the history to ensure the cache is up to date. + + Editing $HISTFILE Zsh history file directly will not remove the command from the history cache and will show when navigating histor until logging out of the shell session. + + +## Engineering Playbook + +Added [shell alias examples](https://practical.li/engineering-playbook/os/shell/) to Practicalli Engineering Playbook. + +Rewrote the [Deliberate Practice](http://practical.li/engineering-playbook/practices/deliberate-practice/)overview and reorganised Architecture and Code Kata pages as sub-sections. + + +--- +Thank you. + +[:globe_with_meridians: Practical.li Website](https://practical.li){target=_blank .md-button} + +[:fontawesome-brands-github: Practical.li GitHub Org](https://github.com/practicalli){target=_blank .md-button} +[:fontawesome-brands-github: practicalli-johnny profile](https://github.com/practicalli-johnny){target=_blank .md-button} + +[:fontawesome-brands-mastodon: @practicalli@clj.social](https://clj.social/@practicalli){target=_blank .md-button} +[:fontawesome-brands-twitter: @practical_li](https://twitter.com/practcial_li){target=_blank .md-button} +