Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Preventing a single command from being saved in history
- X-seq: zsh-users 13868
- From: Matt Wozniski <godlygeek@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Preventing a single command from being saved in history
- Date: Wed, 18 Feb 2009 11:27:24 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=tgeEcY8Xk2CtemliDRZRCbeYx4vWJJZJND2HZn41edE=; b=XgGp8WJf4TsRZk+gq3CwzL+731bpXNNPZTlANfHFgaHQJ7//977/kAj95U2nk5GadM efaKOwWjYZY3jTDXnL21KMsn06BWaiDO8HdKcXtW1qmsS8TdFF6CWQ63NCNP4CxK9viW QpUfuBIhyYDG1vbicTZ6fLmhmFRvC2E78WLho=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=ZWPC2lZD5kW5FfWQtdT6fz/EKewYCw3y2jstoSNIog0imgbW/WW+eyN/uBcWhlgxcG i/0LIGtuSeKgkkp9dV0xZ5qfFwgvrV1/aYzB04+c887wwp+0dgybTHAMeMIn+hfRmSFz mLkVg5u7NuWslq1JyxmZhu9xFcpMjdV9dIICc=
- In-reply-to: <b2e43f8f0902180819x4955a281r6ae8700e4dbcc5a6@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <b2e43f8f0902180819x4955a281r6ae8700e4dbcc5a6@xxxxxxxxxxxxxx>
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