function fish_right_prompt set stat $status printf "\e[38;5;244m%s\e[0m " (date +%H:%M) if test $stat -ne 0 printf "\e[91m(%d) " $stat end printf "\e[37m%s\e[0m" (__fish_git_prompt "%s") end