From 17ce55e031014df56f5182698c23459a7ed61aaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Ooms?= Date: Thu, 16 Jan 2020 14:51:22 +0100 Subject: [PATCH] Explain how fish can be configured to exclude jrnl commands from history by default --- docs/encryption.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/encryption.md b/docs/encryption.md index 2cb5d547..35a26313 100644 --- a/docs/encryption.md +++ b/docs/encryption.md @@ -56,10 +56,14 @@ setopt HIST_IGNORE_SPACE alias jrnl=" jrnl" ``` -The fish shell does not support automatically preventing logging like -this. To prevent `jrnl` commands being logged by fish, you must make -sure to type a space before every `jrnl` command you enter. To delete -existing `jrnl` commands from fish’s history, run +If you are using `fish` instead of `bash` or `zsh`, you can get the same behaviour by +adding this to your `fish` configuration: + +``` sh +abbr jrnl=" jrnl" +``` + +To delete existing `jrnl` commands from `fish`’s history, run `history delete --prefix 'jrnl '`. ## Manual decryption