### PROMPT# {{{ # https://github.com/clear-code/zsh.d/ setopt prompt_subst setopt prompt_percent setopt transient_rprompt color256() { local red=$1; shift local green=$2; shift local blue=$3; shift echo -n $[$red * 36 + $green * 6 + $blue + 16] } fg256() { echo -n $'\e[38;5;'$(color256 "$@")"m" } bg256() { echo -n $'\e[48;5;'$(color256 "$@")"m" } zstyle ':vcs_info:*' max-exports 3 zstyle ':vcs_inf