Live data from Hacker News

Show HN: Whetuu – a zero-config cross-shell prompt written in Zig

yamafaktory.github.io

31–40 of 40 posts

Re: Show HN: Whetuu – a zero-config cross-shell prompt written in Zig

#32
I stopped using fancy prompts at some point. My current prompt is a single $ sign. If I need to know the current dir I just run cwd, I don't need it on every prompt. If I need the git branch just use git status (though aliased to gs [no, I don't use ghostscript]).

Re: Show HN: Whetuu – a zero-config cross-shell prompt written in Zig

#33
post #25

Earlier quoted context omitted.

The XDG Base Directory spec covers config/data/cache/state, it does not define where executables go. Whetuu history & cache are both compliant as both go to respectively ~/.local/share/whetuu/ ($XDG_DATA_HOME) & ~/.cache/whetuu/ ($XDG_CACHE_HOME).Atuin, cargo and many other tools are doing the same. By the way, Atuin also rebinds the up arrow.

The XDG Base Directory spec covers config/data/cache/state, it does not define where executables go. it does: https://specifications.freedesktop.org/basedir/latest/ User-specific executable files may be stored in $HOME/.local/bin. Distributions should ensure this directory shows up in the UNIX $PATH environment variable, at an appropriate place. i prefer ~/bin/ but this is better than creating you own directory that…

Thanks for the hint.

Re: Show HN: Whetuu – a zero-config cross-shell prompt written in Zig

#34
post #27

a few questions: i am confused by this line: You need a Nerd Font. The prompt uses Nerd Font glyphs for the git branch, the language logos and the prompt character. Without one, those show as empty boxes. this sounds like a nerdfont needs to be installed manually. but that doesn't seem to be the case because it just seems to work. and i don't remember installing such a font. i also wonder what version it is showing w…

If you see the glyphs correctly, you're very likely having Nerd Font installed. If not in git, it will show https://yamafaktory.github.io/whetuu/#modules. And to edit an entry in the list, hit tab :).

Re: Show HN: Whetuu – a zero-config cross-shell prompt written in Zig

#35

This isn't news, the real news is that the AI tooling allows YOU (specifically) to have a custom prompt tool built specifically for you, in the same or less effort it would take to set up one of the existing prompt tools. For example, I liked the idea of this but had no interest in the shell history integration; I use atuin. So I had codex build me one, including the 250ms wait for git, and if git takes longer than t…

Indeed, this is very opinionated (it's mentioned in the repo / landing page but that was too long for the ShowHN title).

Re: Show HN: Whetuu – a zero-config cross-shell prompt written in Zig

#36

Earlier quoted context omitted.

The XDG Base Directory spec covers config/data/cache/state, it does not define where executables go. Whetuu history & cache are both compliant as both go to respectively ~/.local/share/whetuu/ ($XDG_DATA_HOME) & ~/.cache/whetuu/ ($XDG_CACHE_HOME).Atuin, cargo and many other tools are doing the same. By the way, Atuin also rebinds the up arrow.

We’ve been over this. Atuin is not a shell prompt.

I'll try to make that a constructive argument and assume that the project shouldn't use the word "prompt".

Re: Show HN: Whetuu – a zero-config cross-shell prompt written in Zig

#38
post #27

a few questions: i am confused by this line: You need a Nerd Font. The prompt uses Nerd Font glyphs for the git branch, the language logos and the prompt character. Without one, those show as empty boxes. this sounds like a nerdfont needs to be installed manually. but that doesn't seem to be the case because it just seems to work. and i don't remember installing such a font. i also wonder what version it is showing w…

If you see the glyphs correctly, you're very likely having Nerd Font installed. If not in git, it will show https://yamafaktory.github.io/whetuu/#modules . And to edit an entry in the list, hit tab :).

Actually regarding the Nerd Font point, you might be using a terminal supporting it out the box. I'll adjust the readme and the landing page accordingly.

Re: Show HN: Whetuu – a zero-config cross-shell prompt written in Zig

#39
In order to address several comments I got here, the readme and landing pages have been reworked. I can't change the title here but read as: An opinionated, zero-config status line and history picker for fish, bash and zsh, written in Zig. Also tackled several issues mentioned in different comments (including the install to ~/.local/bin).

Re: Show HN: Whetuu – a zero-config cross-shell prompt written in Zig

#40

Earlier quoted context omitted.

If you see the glyphs correctly, you're very likely having Nerd Font installed. If not in git, it will show https://yamafaktory.github.io/whetuu/#modules . And to edit an entry in the list, hit tab :).

Actually regarding the Nerd Font point, you might be using a terminal supporting it out the box. I'll adjust the readme and the landing page accordingly.

you are right, i am using wezterm which does bundle nerdfonts. i didn't realize that.
Post reply on HN