80 words
1 minutes
Fish Shell, how to avoid recording commands to history

Fish Shell, how to avoid recording commands to history#

In Fish Shell, you may want to avoid recording certain commands to history for privacy or security reasons. This guide provides a method to achieve this.

Avoiding History Recording#

To avoid recording a command to history, prefix the command with a space:

 echo "This command will not be recorded"

Conclusion#

By prefixing commands with a space, you can avoid recording them to history in Fish Shell. This can help maintain privacy and security for sensitive commands.


Fish Shell, how to avoid recording commands to history
https://zxce3.net/posts/fish-shell-how-to-avoid-recording-commands-to-history/
Author
Memet Zx
Published at
2021-07-26