diff lisp/eshell/em-prompt.el @ 106298:3a4157b5e536

* eshell/em-prompt.el (eshell-prompt-function): Abbreviate pwd, since `cd' doesn't always do it for us (bug#5067). * pcomplete.el (pcomplete-entries): Revert change installed mistakenly on 2009-10-25 as part of some other change (bug#5067).
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 28 Nov 2009 17:06:30 +0000
parents ddf360111014
children 1d1d5d9bd884
line wrap: on
line diff
--- a/lisp/eshell/em-prompt.el	Sat Nov 28 10:50:31 2009 +0000
+++ b/lisp/eshell/em-prompt.el	Sat Nov 28 17:06:30 2009 +0000
@@ -46,9 +46,9 @@
 (defcustom eshell-prompt-function
   (function
    (lambda ()
-     (concat (eshell/pwd)
+     (concat (abbreviate-file-name (eshell/pwd))
 	     (if (= (user-uid) 0) " # " " $ "))))
-  "*A function that returns the Eshell prompt string.
+  "A function that returns the Eshell prompt string.
 Make sure to update `eshell-prompt-regexp' so that it will match your
 prompt."
   :type 'function