Simple shell prompt generator in Hare.
Androsace expects arguments.
If an argument matches the name of a known segment generator, then the result will be appended.
If an argument does not match any generator then it is appended as string.
Edit the prompt variable in your shell configuration file, probably .bashrc
,
.zshrc
or .profile
.
For ZSH you may need to enable the prompt
expansion by
adding setopt PROMPT_SUBST
to your .zshrc
.
Available segments at the moment are:
Here is an example.
PS1='$(androsace \
username \
"@" hostname \
" $? " \
cwd " " \
"[" unixtime "]" \
tail " ")'
Which outputs:
fmac@maze 0 ~ [1643226483]
$
make
make install
Shoot me emails full of patches.