-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
post: weekly journal entry starting 26 February 2024
- Loading branch information
1 parent
4d6437f
commit b0285b5
Showing
2 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters