Re: Feature: Easily remove current command from history
From:
Greg Wooledge
Subject:
Re: Feature: Easily remove current command from history
Date:
Mon, 4 Jan 2016 15:37:21 -0500
User-agent:
Mutt/1.4.2.3i
On Mon, Jan 04, 2016 at 09:30:37PM +0100, Piotr Grzybowski wrote:
> On Mon, Jan 4, 2016 at 9:19 PM, Victor Porton <porton@narod.ru> wrote:
> > It is important for security:
> >
> > It should be easy to remove lines with passwords and potentially harmful
> > commands (like sudo with rm).
>
> never put your passwords in plain text in commands, thats important
> for security. If, for some reasons, you have to type sensitive data
> inline, take any precautions available to not to put the command in
> the history.
Such measures may include prefixing the command with a space when you
enter it, if you have ignorespace or ignoreboth in the HISTCONTROL
variable.