I would like to edit my shell prompt to display time. I am currently using zsh, though I would like the customize the shell prompt to show time.
I understand that an echo $PS1 will give me the environment variable contents. Given:
[%n]%~ Setting the prompt using:
setenv PROMPT '[%n]%t ' I also know if I type man zsh and press enter it will give me a list of formats I can change to.
setenvis acshcommand. You should get a "command not found" error inzsh.