Hi, welcome to the Foo
This is the first my visit to the forum and it seems I might hang out here from time to time. So I decided to share my small trick. You can find all details on Bash History Page on my website. But here is the intro so you decide if you need it
I hope it comes useful. Any comments are welcome!You're using bash? You probably love it, especially if you use bash_completion script... Ok - no more lyrics. I like to keep track of what and when I'm doing something in shell. It is reasonable wish to have all my activites logged so in future I can check what I've done if I need to find where I made a mistake or how I've done something.
So first solution would be to set HISTSIZE to be very big, but then I don't know how well your bash would behave - I believe it tries to keep them all in memory. But I want to have my bash fast! So it must be accomplished in another way.
Lets use a big file ~/.bash_history.archive (separate from HISTFILE=~/.bash_history). And then on exit from each bash session lets append new history lines to it. The problem with this approach is how to make bash call this script on each exit? Sure if you exit it by typing 'exit' then you can alias 'exit' function but I use shortcut Ctrl-D for that and I could not find a way how to reassign it to something not builtin exit function.
Hi, welcome to the Foo
Hello and welcome.
Thanks for posting a link to your site with that tutorial on it. I love bash, and even though I don't think I will be implimenting the history feature you talk about. I like finding out all the think you can do with bash.
jro - http://jeff.robbins.ws
GnuPG ID: 406238E7
Thank you guys for welcoming meOriginally Posted by jro";p="4736
As for this feature: it helps me a lot mostly because I use bash to compose quick scripts/pipes to process some data doing "research", and often I don't keep a separate protocol. Keeping log of all my actions I can always come back (nomater when I was doing that) to what I was doing at that moment, and how.
For the same purpose I made mandatory diaring of all my actions in matlab (description is also on my webpage :-))
I'm late wishing you welcome. I did pull the bash information and will be implementing it shortly. Thanks.
Everything I learn gives me another way to say \"OOPS!\" :oops:
Way to break it out!
Hey, I screwed-up! Then I red this article and unscrewed-up. Duh?
yarikoptic, crawl in more often, need lots of help.
Thanx for your post.
I'm glad that you liked it guys I need to improve it a bit occasionally but it kinda works so I don't touch it for now ;-) (although need to update online version with a tiny bugix)
As for linux humor:
We need to discuss a topic "how to make linuxfoo faster" because today it just drives me nuts by its speed - it is soooo sloooooww
BTW whoever is from NJ - we are organizing a LUG at NJIT so you are welcome :-) lug.njit.edu
hopefully we will have busy forum some day so you're welcome to join :-)
Welcome, yarikoptic. I would agree that a faster Linuxfoo would be a good thing.