Skip to content

Commit 96d5ca3

Browse files
committed
feat: make get arrow func and new time
1 parent 11c512e commit 96d5ca3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

snowflake.zsh-theme

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
get_time(){
2-
echo '%S%t %s'
2+
echo '%S %* %s'
33
}
44

55
snowflake_icon(){
66
echo '%{$fg[white]%}❄%{$reset_color%}'
77
}
88

9-
PROMPT="$(snowflake_icon) %(?.%{$fg_bold[cyan]%}➜.%{$fg_bold[red]%}➜%f) %{$reset_color%}"
9+
# show red arrow on error otherwise green arrow
10+
get_arrow(){
11+
echo '%(?.%{$fg_bold[cyan]%}➜.%{$fg_bold[red]%}➜%f) %{$reset_color%}'
12+
}
13+
14+
PROMPT="$(snowflake_icon) "
1015
RPROMPT='$(get_time) %{$reset_color%}'

0 commit comments

Comments
 (0)