On macOS, using iTerm2. It looks like
In Emacs For Mac OS X, it looks like
I copied system's ~/.zshrc file to ~/.profile and ~/.bash_profile, but doesn't they read configrations when start emacs?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.Sign up to join this community
One possibility is to use term.el
term is a full-featured terminal emulator, within which you can run your OS preferred shell, meaning that terminal escape characters will be handled in input and output generally (including your prompt).
The main complication is that some keybindings conflict with emacs bindings, and so there are two modes of input depending on whether you want keys to behave more like a terminal ("char mode") or more like Emacs ("line mode"). See the manual for more about this: