After using oh_my_zsh for quite a while, I recently switched to having my own repo to store my dotfiles. I got a better understanding of zsh and its customization, now there is no surprising alias that I didn’t know of.
My prompt now looks something like this:
The right-hand side contains all relevant information about my current repo.
The red circle indicates that I have untracked files but it being empty means
nothing is staged.
The color indicates the time since the last commit, more than 30 minutes in this case.
It also tells me the branch I am on or the SHA1 of the current HEAD, if I am in ‘detached HEAD’ state.
You can find my prompt here, if you would like to use some of it for your own shell.Posted in working-on