|
From: | the2nd |
Subject: | [Help-bash] counterpart of HISTIGNORE/HISTCONROL but only for saving to .bash_history |
Date: | Wed, 17 Jun 2015 13:53:52 +0200 |
User-agent: | Roundcube Webmail/0.9.5 |
hi,is it possible to prevent bash from saving an command to the history file but still keeping it in the in-memory history of the current session?
this would be very useful if you need to run an "dangerous" command (e.g. mkfs) multiple times in your current session but dont want it in your history of any other session.
a real world scenario i often have is when migrating/testing ganeti instances. the device file is named something like /dev/system/ce48be69-be2f-422c-986f-9bdc6a29dc42.disk0 and if you need to run commands like mkfs or kpartx many times on it, it would be great to keep it in the history but only for the current session.
regards the2nd
[Prev in Thread] | Current Thread | [Next in Thread] |