Mike White's Avatar

Mike White

@mooshymikew.bsky.social

๐Ÿ‡จ๐Ÿ‡ฆ Vancouver technologist and people leader. Currently Scala / Akka / Kafka / event sourcing

243 Followers  |  95 Following  |  1 Posts  |  Joined: 03.10.2023  |  1.3109

Latest posts by mooshymikew.bsky.social on Bluesky

panel 1: your shell has a history of the commands you ran

some ways to access history:

* press the up arrow
* run history
* search it with Ctrl-R (in bash/zsh)

panel 2: how long does your shell store history for?

in bash, the default is 
500 commands (not enough!)

in fish, the default is 
256,000 commands

if you're using bash, you might want to configure it to store more history

panel 3: when does your shell save history?

by default, bash and zsh only save history to a file when you exit the shell

fish saves the history continuously

panel 4: where is history stored?

bash: .bash_history

zsh: run echo $HISTFILE

fish: mine is in ~/.local/share/fish/fish_history

person (thinking): โ€œsometimes I copy over my shell history when setting up a new computer!โ€

panel 5: a useful history tool:  atuin

atuin lets you:

* save unlimited history
* search history more easily
* save commands as soon as you run them
* sync your history (optionally)

panel 6: gotcha: history in zsh only shows 15 entries

You can run history 0 to see all the history


panel 7: 

commands that start with a space don't go in your history. good for passwords!   

(might depend on your shell's config)

panel 1: your shell has a history of the commands you ran some ways to access history: * press the up arrow * run history * search it with Ctrl-R (in bash/zsh) panel 2: how long does your shell store history for? in bash, the default is 500 commands (not enough!) in fish, the default is 256,000 commands if you're using bash, you might want to configure it to store more history panel 3: when does your shell save history? by default, bash and zsh only save history to a file when you exit the shell fish saves the history continuously panel 4: where is history stored? bash: .bash_history zsh: run echo $HISTFILE fish: mine is in ~/.local/share/fish/fish_history person (thinking): โ€œsometimes I copy over my shell history when setting up a new computer!โ€ panel 5: a useful history tool: atuin atuin lets you: * save unlimited history * search history more easily * save commands as soon as you run them * sync your history (optionally) panel 6: gotcha: history in zsh only shows 15 entries You can run history 0 to see all the history panel 7: commands that start with a space don't go in your history. good for passwords! (might depend on your shell's config)

shell history

wizardzines.com/comics/shell...

12.03.2025 17:07 โ€” ๐Ÿ‘ 191    ๐Ÿ” 41    ๐Ÿ’ฌ 6    ๐Ÿ“Œ 1

In terms of hours spent addressing automated security vulnerability checks, is FasterXML/jackson the worst ever? It's been... decades.

29.11.2024 17:48 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

@mooshymikew is following 20 prominent accounts