Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 43 |
Nodes: | 6 (0 / 6) |
Uptime: | 108:36:04 |
Calls: | 290 |
Files: | 905 |
Messages: | 76,683 |
your prompt easily and in a powerful way, I advise the use of a framework prompt.
What is a "framework prompt" ?
* gazelle@shell.xmission.com (Kenny McCormack) in comp.unix.shell:
What is a "framework prompt" ?
Sorry, wanted to write "(shell, not LLM) prompt framework" :)
* gazelle@shell.xmission.com (Kenny McCormack) in comp.unix.shell:
What is a "framework prompt" ?
Sorry, wanted to write "(shell, not LLM) prompt framework" :)
In addition to Starship, the main ones that come to mind are:
- https://github.com/liquidprompt/liquidprompt
- https://github.com/JanDeDobbeleer/oh-my-posh
- https://github.com/b-ryan/powerline-shell (not active any more, it seems) - https://github.com/justjanne/powerline-go
Sorry, wanted to write "(shell, not LLM) prompt framework" :)
Fine. But what is a "framework prompt" (or a "(shell, not LLM)
prompt framework" if you prefer that)? Since you're suggesting
something (in context of something as simple as a shell prompt)
that is obviously not commonly known, do you mind to explain?
Preferably with a rationale or statement why it shall be used
(as opposed to just defining prompt the usual and simple way).
These two are also very well-known, but only work with zsh:
- https://github.com/ohmyzsh/ohmyzsh (much wider scope than prompt, but
customizing it is one the most visible features)
- https://github.com/sindresorhus/pure
I have some NNTP issues (I can see much more articles on the public read-only server I use than on the other one I use to post) ; I almost never post nowadays
and Usenet is really extremely niche now, so I do not want to invest time on fixing...
I will still answer very quickly to this even if I vaguely feel a trollish tone:
Fine. But what is a "framework prompt" (or a "(shell, not LLM)
prompt framework" if you prefer that)? Since you're suggesting
something (in context of something as simple as a shell prompt)
that is obviously not commonly known, do you mind to explain?
Preferably with a rationale or statement why it shall be used
(as opposed to just defining prompt the usual and simple way).
I'm not interested in bike-shedding on words, we can call them prompt tools or
whatever, I don't care.
"not commonly known" might be true in this newsgroup, but if we look at the "Github stars" for all the projects I quoted (yes, I know, this metric is not perfect and can be criticized), they sum up to about 235000, so these projects
clearly have users.
If you have a quick look at the tools (why would the whole "evidence" be on my
side?), what they have in common is:
- they provide much more pieces of info you can choose to display (see right
column on https://starship.rs/config/) and, importantly, to not display if they
are not relevant to you
- this info is dynamic and comes from many sources unknown from the shell itself
- they are contextual: the display depends on the current directory and its
content
- they can be configured in much details and you do not need to fiddle with ANSI
codes to add colors, for example.
I will stop here on this whole topic, if people hate external prompt tools, they
are free to not use them.
From all the posts (yours and other responses) I guess that you have to install
a (huge) package to introduce a layer between you and your shell, that all input
and output gets intercepted and transformed
PS: *If* the package is effectively an intercepting layer I wonder how it will
pass functions that I use in my shell (e.g. Vi Editing Mode) to the shell.