I wanted to suppress the current working directory from the prompt for the eshell like i do on the commandline because it takes up a lot of screen space. Using C-h v i check that the default value is:
Value:
(lambda nil
(concat
(eshell/pwd)
(if
(=
(user-uid)
0)
" # " " $ ")))
and I tried changing it to this in my .emacs:
(setq eshell-prompt-function
(lambda () "> "))
but when I do the above, certain keys break. For example, I can no longer use M-p to browse the previous commands, and C-c C-a will not set point to the beginning of the command im typing like it does with the default prompt. I am wondering why this is happening and if there is a way around it?
Thanks