logoalt Hacker News

PeterWhittakeryesterday at 7:25 PM1 replyview on HN

What am I missing? I went to the site, but I can find nothing to suggest why I might want to use this. Are there examples that I've missed, likely owing to having been heads down chasing a pernicious heisenbug all day?

Given that I do like my shiny prompt, which shows me:

  The result of the last command (in green, red, or purple)
  user@host:currentDirectory
  current branch, if in a repo
with the last line showing summary git status, if in a repo, and background jobs, I suspect I might be their market, but I cannot see a why anywhere.

(Green: Last command good, e.g., exit 0) (Red: Last command non-zero exit, with a special indicator if it was interrupted) (Purple: Last command suspended, and few other things)


Replies

ashishbyesterday at 7:32 PM

You can show several such results like git branch, git status, etc. in a a declarative composable fashion.

How else would you implement something like this? https://github.com/ashishb/dotfiles/blob/master/scripts/star...