add little cat
This commit is contained in:
parent
9c6170ba64
commit
c013267546
4 changed files with 13 additions and 2 deletions
|
|
@ -50,7 +50,7 @@
|
|||
};
|
||||
}; # end fish
|
||||
nushell = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
configFile.source = ../conf/config.nu;
|
||||
shellAliases = globalShellAbbrs // {
|
||||
};
|
||||
|
|
@ -112,6 +112,7 @@
|
|||
|
||||
# xonsh extras
|
||||
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
|
||||
home.packages = [ pkgs.fish ];
|
||||
} # end file
|
||||
|
|
|
|||
6
home/conf/xonsh/kiddycad.cow
Normal file
6
home/conf/xonsh/kiddycad.cow
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
$the_cow = <<"EOC";
|
||||
$thoughts | ╱|、
|
||||
$thoughts| (˚ˎ 。7
|
||||
|、˜〵
|
||||
じしˍ,)ノ
|
||||
EOC
|
||||
0
home/conf/xonsh/theo.py
Normal file → Executable file
0
home/conf/xonsh/theo.py
Normal file → Executable 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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue