Add flag emojis to zsh prompt
This commit is contained in:
parent
092109e3dd
commit
48637f71df
@ -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)"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user