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
|
}; # 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
|
||||||
|
|
|
||||||
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:
|
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")
|
||||||
Loading…
Add table
Add a link
Reference in a new issue