I'm using iTerm2 on MacOS Sierra. I try to edit the PS1 in variable .bash_profile to be
PS1="\h:\W \u \$"
but in terminal I get the promp
\h:\W \u \$ instead of Simon:~ simon $
Any ideas why it behaves like this?
I'm using iTerm2 on MacOS Sierra. I try to edit the PS1 in variable .bash_profile to be
PS1="\h:\W \u \$"
but in terminal I get the promp
\h:\W \u \$ instead of Simon:~ simon $
Any ideas why it behaves like this?
Copyright © 2021 Jogjafile Inc.
In iTerm2 you can use bash instead of zsh by setting inside profile settings
iTerm2 -> Profiles -> Choose Profile on left -> Command: /bin/bashSimply tell iTerm2 to use arbitrary Command instead of Login shell.