Synchronize bash history among different machines

Today I finally decide to make a script to keep my bash_history synchronized among all the machines I use. It’s a simple script that retrieves all the .bash_history files from all my machines, merges all the files into one, sort it, removes the duplicated lines and write it back to all the machines. The only drawback is that the original ordering of the history files is lost due to the alphabetical sorting step (needed to remove the duplicated lines). ...

May 30, 2007

Scrolling fast with the mousewheel triggers history back and forth

I’m observing an strange firefox behavior when I scroll the page using the mouse wheel. It goes back and forth through search history. So I googled a little bit and found that the KVM switch that I’m using it’s producing bogus key press event that firefox misinterprets. If you are running Linux the solution is simple as you can modify the X server configuration to ignore those events. But I cannot find a suitable solution for Windows. ...

April 20, 2007

Enabling bash history and more

After reading the tip I mentioned in my previous post I made some changes to my `~/.bashrc` to enable bash history alias e32="$HOME/eclipse/eclipse321/eclipse" alias e33="$HOME/eclipse/eclipse33M4/eclipse" alias nb="$HOME/netbeans-5.5/bin/netbeans" JAVA_HOME=$HOME/jdk1.6.0 PATH=$JAVA_HOME/bin:$PATH:$HOME/bin: export PATH HISTFILESIZE=1000000000 HISTSIZE=1000000 HISTCONTROL=ignoredups shopt -s histappend INPUTRC=~/.inputrc and to my `~/.inputrc` "\e[A": history-search-backward "\e[B": history-search-forward “\e[A”and"\e[B"` being whatever your terminal uses for up & down. And with the following simple command I can see the commands I use most: ...

January 8, 2007

What's in your bash History? - O'Reilly ONLamp Blog

Very useful tip to analyze you bash history.

January 5, 2007