--- twill-0.9~b1.orig/twill/shell.py
+++ twill-0.9~b1/twill/shell.py
@@ -102,10 +102,16 @@
         # initialize a new local namespace.
         namespaces.new_local_dict()
 
+        # The history file name is located in the home directory of
+        # the user
+        import os
+        self._history_file = os.path.join(os.environ["HOME"],
+                                          ".twill_history")
+
         # import readline history, if available.
         if readline:
             try:
-                readline.read_history_file('.twill-history')
+                readline.read_history_file(self._history_file)
             except IOError:
                 pass
 
@@ -237,6 +243,6 @@
     def do_EOF(self, *args):
         "Exit on CTRL-D"
         if readline:
-            readline.write_history_file('.twill-history')
+            readline.write_history_file(self._history_file)
             
         raise SystemExit()
 
