Created
November 22, 2025 15:56
-
-
Save datfooldive/541ef24e35e555b198d5446ed64137d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _prompt_agnoster_status() { | |
| local segment= | |
| (( RETVAL )) && segment+=" %F{red}${RETVAL}" | |
| (( EUID == 0 )) && segment+=" %F{yellow}⚡" | |
| (( ${#jobstates} )) && segment+=" %F{cyan}⚙" | |
| if [[ -n ${VIRTUAL_ENV_PROMPT} ]]; then | |
| segment+=" %F{cyan}${VIRTUAL_ENV_PROMPT}" | |
| elif [[ -n ${VIRTUAL_ENV} ]]; then | |
| segment+=" %F{cyan}${VIRTUAL_ENV:t}" | |
| fi | |
| segment+=" %F{%(!.yellow.default)}%n@%m" | |
| if [[ -n ${segment} ]]; then | |
| _prompt_agnoster_segment black "${segment} " | |
| fi | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment