diff --git a/home/alisceon/base.nix b/home/alisceon/base.nix index d6033b3..2bb6332 100644 --- a/home/alisceon/base.nix +++ b/home/alisceon/base.nix @@ -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 diff --git a/home/conf/xonsh/kiddycad.cow b/home/conf/xonsh/kiddycad.cow new file mode 100644 index 0000000..9ec3a19 --- /dev/null +++ b/home/conf/xonsh/kiddycad.cow @@ -0,0 +1,6 @@ +$the_cow = <<"EOC"; + $thoughts | ╱|、 + $thoughts| (˚ˎ 。7 + |、˜〵 + じしˍ,)ノ +EOC \ No newline at end of file diff --git a/home/conf/xonsh/theo.py b/home/conf/xonsh/theo.py old mode 100644 new mode 100755 diff --git a/home/conf/xonsh/xonshrc b/home/conf/xonsh/xonshrc index f26742c..16940c8 100644 --- a/home/conf/xonsh/xonshrc +++ b/home/conf/xonsh/xonshrc @@ -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") \ No newline at end of file