add little cat

This commit is contained in:
alisceon 2025-09-15 00:12:12 +02:00
parent 9c6170ba64
commit c013267546
4 changed files with 13 additions and 2 deletions

View file

@ -0,0 +1,6 @@
$the_cow = <<"EOC";
$thoughts | |、
$thoughts| (˚ˎ 。7
|、˜〵
じしˍ,)
EOC

0
home/conf/xonsh/theo.py Normal file → Executable file
View file

View file

@ -1,5 +1,6 @@
if $XONSH_INTERACTIVE:
from datetime import datetime
import os
t0 = datetime.now()
## ENV ##
$XONSH_COLOR_STYLE = 'native'
@ -47,6 +48,9 @@ aliases["theo"] = "python ~/.config/xonsh/theo.py"
if $XONSH_INTERACTIVE:
hour = t0.hour
$COWCOL = os.get_terminal_size()[0] - 6
theo | cowsay -W $COWCOL -f ~/.config/xonsh/kiddycad.cow
"""
if 5 <= hour < 10:
theo | cowsay -d
elif 10 <= hour < 16:
@ -57,6 +61,6 @@ if $XONSH_INTERACTIVE:
theo | cowsay -t
else:
theo | cowsay -s
"""
dt = round((datetime.now() - t0).microseconds/1000000, 2)
print("Load time:", dt, "seconds")