Archive for September, 2007
Bash History
In case, history command does not save commands that you executed in the previous session, you can enable it by putting this in your .bashrc
export HISTFILE=~/.bash_history
CtrlR on bash prompt reads from the “history” itself.
So if history does not work, CtrlR also won’t work
Add comment September 12, 2007
Firefox Shortcuts
Do you type in URLs of well known sites over and over and over again? I’ve been doing it for years because I couldn’t think of a better way to browse to frequently used sites. I didn’t want to create bookmarks for two reasons. One, I use several different machines and keeping them all in sync would be a pain. Two, the more bookmarks you get, the harder it is to find the one you’re looking for and it’s faster to just type the URL instead of searching through all your bookmarks to find the site. Now I’ve found an easier way.
First, use Foxmarks. It synchronizes your bookmarks across any number of Firefox installations, so you can create a bookmark in any of the browsers you use and the bookmark will be propagated to the rest of the instances.
Second, use the keyword field.
I’ve now bookmarked those sites and added a keyword to each one, so instead of typing in http://www.flickr.com/photos/username (which I’ve done hundreds of times) I type the ‘fl <username>’ keyword into the URL field to visit my web site.
Heres how you do it.
In Firefox, go to the bookmark management/organization section. Create a new bookmark.
Name: Movable Type
Location: http://www.flickr.com/photos/%s
Keyword: fl
PS: You can also use for search and stuff. Also It doesn’t have to be used only for sites that accept queries. In the past I only used quick searches for places like Yahoo and Sourceforge because it was convenient to type a search phrase and go directly to the results page. It recently dawned on me that I could do the same with other frequently visited sites.
1 comment September 4, 2007




