pudentia · 2022-09-10 07:34
I don't like having the directory path displayed in my eshell prompt and would prefer to turn it off, but alas! I cannot find a setting for that.
bram85 · 2022-09-10 09:47
You need to override the prompt function, which can be done with `(setq eshell-prompt-function 'my/cuntom-prompt)` and define the prompt yourself in your own function.
This article has an example on how to build a custom prompt. https://www.bytedude.com/custom-eshell-prompts/
[deleted] · 2022-09-10 10:11
[deleted]
stormrider-io · 2022-09-10 11:10
fwiw, you can also use the .bash startup file's PS1 definition
pudentia · 2022-09-10 13:38
I did this but I then found C-a no longer worked properly.
deaddyfreddy · 2022-09-10 15:18
what's the `concat` for?
pudentia · 2022-09-10 16:35
It is not working for me. I have removed it.
Illiamen · 2022-09-11 18:14
You also need to configure `eshell-prompt-regexp`, which should match the prompt. See here: https://www.emacswiki.org/emacs/EshellPrompt