[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Two ideas similar to ignorespace

From: Egmont Koblinger
Subject: Two ideas similar to ignorespace
Date: Tue, 11 Feb 2014 21:40:17 +0100


I've been using HISTCONTROL=ignorespace for a long time, and I often
begin a command with space if I don't want that command to be stored
in history (typically "dangerous" commands, e.g. I almost always type
"<space>rm something" instead of "rm something").

I have two feature request ideas for you to consider, I think these
would be cool:

- Like ignorespace, except that the command would still be accessible
in the running bash, just not saved in the history file when exiting.
If I make a typo in a command that begins with a space, I need to type
it again or copy-paste.  It would be more convenient to bring it back
with the Up array, just like for normal commands.  They'd be forgotten
when I quit that shell.

- Something like "ignorefaulty": Commands that contain a syntax error
or command not found or alike could be handled similarly: kept in the
running bash instance so you can bring it back with the Up arrow and
fix it, but not saved in history.  This would make the history cleaner
as it'd eliminate useless faulty entries.

Thanks for considering these ideas,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]