Skip to content

Commit

Permalink
post: weekly journal entry starting 26 February 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalli-johnny committed Feb 28, 2024
1 parent 4d6437f commit cfc9000
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions docs/posts/2024/february/26.md
Original file line number Diff line number Diff line change
@@ -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

<!-- more -->

## 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}

0 comments on commit cfc9000

Please sign in to comment.