Re: selective command history

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

 



Hi,

On Friday 17 September 2010 03:52 AM, Yorvyk wrote:
>>  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.
>
>

Thanks for your response, but its not working for me. :(

> $   tail -5 ~/.bash_history
> git commit
>  ls
>  git checkout master
>  cd org
>   git status -sb

As you can see from the last four commands, its simply recording it 
_with_ the spaces. I am using bash, are you using some other shell by 
any chance?

-- 
Suvayu

Open source is the future. It sets us free.
-- 
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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux