Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Preventing a single command from being saved in history



On Wed, Feb 18, 2009 at 11:19 AM, Allan Caffee wrote:
> Is there a way to prevent an arbitrary command line from being stored in
> the shell history (for any longer than one command)?  A use of this for
> example might be if I were to set a password into the environment or
> pass some sensitive information to a program on the command line.

See the help on the zshaddhistory function in the SPECIAL FUNCTIONS
section of the manual.

~Matt



Messages sorted by: Reverse Date, Date, Thread, Author