killdash9 / better-shell

Emacs shell management
GNU General Public License v3.0
40 stars 7 forks source link

Cannot get remote shell prompt to show my dir #13

Open WorldsEndless opened 4 years ago

WorldsEndless commented 4 years ago

My remote shell prompt in better-shell always shows /ssh:SERVER:/home/USER/ #$ , regardless of what the bashrc says on that server. Further, that directory /home/USER, is permanent, and it doesn't matter what I cd to. I have verified that this is NOT the remote-server's fault; it's definitely better-shell. How can I customize the shell prompt I see in my better-shell-remote?

marcocen commented 3 years ago

I think I have the same problem, but more specifically, the shell never reflects changes cwd, it just stays the same as when I started it no matter where I cd into.

So if I'm standing in a file in /ssh:SERVER:/etc/httpd the prompt stays /ssh:SERVER:/etc/httpd #$ even if I cd somewhere else.

WorldsEndless commented 3 years ago

I found that things snapped into place and start tracking correctly if I execute the command bash at my prompt on the server. Does that work for you?