
manishjethani.com/notes/my-zsh-prompt
Preview meta tags from the manishjethani.com website.
Linked Hostnames
1General Meta Tags
6- titleMy zsh prompt | Manish Jethani
- charsetutf-8
- viewportwidth=device-width
- description% echo $PROMPT %(?.✓.❗️%F{244}%?%f) %F{green}%(4~|%-1~/.../%2~|%~)%f %# % Let's break it down: Exit status This is the first part: %(?.✓.❗️%F{244}%?%f) ? checks for the exit status of the last command. If it indicates success, it shows a ✓. If the last command failed, it shows a ❗️ followed by a space, followed by the error code in gray. Current working directory This is the second part: %F{green}%(4~|%-1~/.../%2~|%~)%f Use the color green. If the path to the current working directory has 4 or more segments, show the first segment, followed by /.../, followed by the last two segments. If not, show the entire path.
- email
Link Tags
2- canonicalhttps://manishjethani.com/notes/my-zsh-prompt/
- pgpkeyhttps://manishjethani.com/key.asc