Wednesday Nov 04, 2009

Which Firefox profile am I using right now?

Sometimes, I'd like to know which profile I am using with my current Firefox instance (for example if an instance has been open for a long time, or if I'm running two instances (using firefox -P -no-remote) at the same time.

I found the solution on this web site:

Start Tools->Error Console (or press <ctrl><shift>j)

Then, in the Code line at the top (you can jump to it using <ctrl>o), enter the following code and press Return (or click the "Evaluate" button):

alert(Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("ProfD", Components.interfaces.nsIFile).path);

It will show the full path of your profile in a popup window. The name of the profile is the last string after the last dot.

Thursday Apr 26, 2007

My (ksh) profile...

Somehow, my original post (my (.)profile...) got lost. So here are my up-to-date .profile and .kshrc files. Please download them directly via right mouse key and do not load it into a browser window and copy and paste it from there, as one of the files contains a binary character.

There's some interesting stuff in it:

  • a two-line prompt that contains the current time
  • a function ("md") that creates a directory and walks (cd) into it
  • a function ("d2u") that converts DOS line endings into UNIX line endings.
  • a function ("fp") that searches for entries in the software installation database /var/sadm/install/contents
  • a vi function (hhxpl) mapped to the unused key "q" which toggles the last two characters, just like Emacs' t
About

blogfinger

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today