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

@ -50,7 +50,7 @@
}; };
}; # end fish }; # end fish
nushell = { nushell = {
enable = true; enable = false;
configFile.source = ../conf/config.nu; configFile.source = ../conf/config.nu;
shellAliases = globalShellAbbrs // { shellAliases = globalShellAbbrs // {
}; };
@ -112,6 +112,7 @@
# xonsh extras # xonsh extras
xdg.configFile."xonsh/theo.py".source = ../conf/xonsh/theo.py; xdg.configFile."xonsh/theo.py".source = ../conf/xonsh/theo.py;
xdg.configFile."xonsh/kiddycad.cow".source = ../conf/xonsh/kiddycad.cow;
# Ensure fish exists for the completer backend # Ensure fish exists for the completer backend
home.packages = [ pkgs.fish ]; home.packages = [ pkgs.fish ];
} # end file } # end file

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