AFV6HEJ2FM6DRVAAQQD7ZF7PMXUKJQLGPRPTMAX3WHOJ4FRWTKBQC
function parse_pijul_channel
pijul channel &> /dev/null
if test $status -eq 0
set -x channel (pijul channel 2> /dev/null | grep -e '\*' | sed 's/*//' )
set_color -b red
set_color black
echo -n $birdie; set_color normal
set_color -b green
set_color black
echo -n $channel_icon
echo -n $channel; set_color normal
set_color -b black
set_color green
echo -n $mark; set_color normal
else
set_color -b black
set_color yellow
echo -n $mark
set_color normal
end
end
function fish_prompt
set_color -b blue
set_color black
echo -n (whoami)
echo -n "@"
echo -n (hostname) ''
set_color -b yellow
set_color black
echo -n '' (prompt_pwd) ''
echo -n (parse_pijul_channel)
echo -n ' '
end
set -x mark ""
set -x channel_icon " ⛕ "
set -x birdie " 🐦 "