manishjethani.com/notes/my-zsh-prompt

Preview meta tags from the manishjethani.com website.

Linked Hostnames

1
  • General Meta Tags

    6
    • title
      My zsh prompt | Manish Jethani
    • charset
      utf-8
    • viewport
      width=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
    • canonical
      https://manishjethani.com/notes/my-zsh-prompt/
    • pgpkey
      https://manishjethani.com/key.asc

Links

2