Add flag emojis to zsh prompt

This commit is contained in:
wiz 2023-03-13 14:43:34 +09:00
parent 092109e3dd
commit 48637f71df
No known key found for this signature in database
GPG Key ID: A394E332255A6173

View File

@ -117,9 +117,16 @@ prompt_wunjo_setup() {
p_line="$pc[line]%y$pc[reset]"
flag=""
case "${(%):-%2m}" in
*tk7*) flag="🇯🇵";;
*fra*) flag="🇩🇪";;
*fmt*) flag="🇺🇸";;
esac
PROMPT=
if [ $verbose ]; then
PROMPT+="$pc[user]%n$pc[reset]@$pc[host]${${(%):-%M}%.mempool.space}$pc[reset] "
PROMPT+="$pc[user]%n$pc[reset]@$pc[host]${(%):-%2m}$flag$pc[reset] "
fi
PROMPT+="$pc[path]%(2~.%~.%/)$pc[reset]"
PROMPT+="\$(prompt_wunjo_scm_status)"