Can the prompt be hidden if the directory has no change after the last command executed? Show only the $
, show the path only if the directory was changed in the last command.
My ps1:
precmd () { __git_ps1 "%B%F{blue}$shellEmulator%f%F{cyan}%3d%f%b" "%F{green}
$ %f" "|%s"}
The shell I am using is zsh.
dir
and then you'll have to scroll up to see where you are if you forgetc-l
, umm... maybe a silly reason.