Re: selective command history

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

 



On Thu, 16 Sep 2010 16:46:08 -0700
suvayu ali <fatkasuvayu+linux@xxxxxxxxx> wrote:

Hi

> Hi everyone,
> 
> I wanted to have different command history for my interactive bash
> session and the history that is written in my bash_history file. Does
> anyone have any idea how to achieve that?
> 
> My use case is, to be able to use up arrow or be able to search
> through my history with C-r for all the commands I type. But I want to
> ignore the trivial day to day use commands to be ignored when the
> history is written to the history file. If I set HISTIGNORE the
> ignored commands also disappear from the interactive command history,
> but without it my shell history file gets cluttered with all these day
> to day commands.
> 
Put a 'space' in front of the day-to-day commands and they don’t appear in the history.  It’s suprising how quickly you get used to tapping the space-bar before typing certain commands.


-- 
Steve Cook (Yorvyk)

http://lubuntu.net 
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux