Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
My prompt basically mimics Fish’s Hydro prompt. The left is a single line that has a truncated $PWD, my git branch, a single symbol for whether my git project dir is ‘dirty’, and a prompt symbol ($ in Bash, % in Zsh, # if I’m root). I use a transient right prompt in Zsh too with command execution times over 10s. Python venvs are the only other thing, but that happens automatically when I activate one. After using this for years, everything else now feels like clutter.
My zsh prompt is simple. It has my pwd, my error code, number of jobs, if I have passwordless sudo, if I’m in vi-mode, and it is transient too so it takes up less space when I hit enter. https://github.com/REALERvolker1/homescripts/blob/main/.config/zsh/rc.d/40-prompt.zsh
And because it's very instructive, I hand-rolled all the rest as well, resulting in this (set via PROMPT_COMMAND).