{ lib, config, ... }: { options.promptEmoji = lib.mkOption { type = lib.types.str; }; config.programs.bash.promptInit = '' PS1="\[\e]0;\u@\h: \w\a\]\n${config.promptEmoji} \[\033[1;$((UID ? 32 : 31))m\]\w \\$\[\033[0m\] " ''; config.programs.fish = { promptInit = '' function fish_prompt echo -n '${config.promptEmoji} ' set_color brgreen echo -n (prompt_pwd) set_color normal echo -n ' > ' end function fish_right_prompt set_color bryellow echo -n (git branch --show-current 2>/dev/null) end ''; shellInit = '' set -g fish_greeting set -g fish_prompt_pwd_full_dirs 999 ''; }; }