Zig updates
Update README to match current `zig build`
Updates for Zig master
Basic prompt that's fairly small and fast. It's about 20 KiB, does not do heap allocation, and has no runtime dependencies (on Linux anyway).
0
.Run zig build --help
to see the available options.
With a recent zig:
zig build -Doptimize=ReleaseSmall --prefix ~/.local # or elsewhere in your $PATH
# build for zsh instead of bash, which is the default
zig build -Dshell=zsh -Doptimize=ReleaseSmall --prefix ~/.local
You can change the shell and prompt string with build options.
In your .bashrc
:
PS1="\$(prompt \$?)"
Examples for bash and zsh can be found in contrib
.