Minimal PS1 - moaxcp/etc-nixos GitHub Wiki
Only show '$ ' when everything is normal (no dir, user, host or exit code)
Only show information when it is needed.
Show exit code of previous command when it is an error.
Show username only when logged in as a different user.
Only show hostname when in a remote session.
- SSH_TTY is populated when remoting into a system.
Show branch name when in a git repo.
For jira only show ticket number of branch.