initial commit

This commit is contained in:
2024-07-19 02:08:20 -04:00
commit d6690e87b7
18 changed files with 488 additions and 0 deletions

21
home/fish/aliases.nix Normal file
View File

@ -0,0 +1,21 @@
{ lib, config, ... }:
{
programs.fish = {
shellAliases = {
# ls aliases
ls = "eza --color $argv";
la = "eza -l -all --color $argv";
ll = "eza -l --color $argv";
lt = "eza -l --color --git $argv";
# lazygit alias
lg = "lazygit";
# cat, less, more alias
cat = "bat $argv";
less = "bat $argv";
more = "bat $argv";
};
};
}

12
home/fish/default.nix Normal file
View File

@ -0,0 +1,12 @@
{ lib, config, ...}:
{
imports = [
./aliases.nix
./functions.nix
];
programs.fish = {
enable = true;
};
}

33
home/fish/functions.nix Normal file
View File

@ -0,0 +1,33 @@
{ lib, config, ... }:
{
programs.fish = {
functions = {
fish_greeting = {
body = ''
set memes \
"Crazy? I was crazy once. They locked me in a room. A rubber room. A rubber room with rats. And rats make me crazy." \
"Daddy, chill!" \
"What the hell is even that?!" \
"Road work ahead? Yeah, I sure hope it does!" \
"Look at all those chickens!" \
"I smell like beef" \
"Say, Coloardo - I'M A GIRAFFE" \
"I didn't get no sleep cause of y'all, y'all not gone get any sleep cause of me!" \
"This is the dollar store, how good can it be?" \
"That was legitness" \
"Deez nuts" \
"I wanna be a cowboy baby" \
"Can I get a waffle? Can I please get a waffle?" \
"I'm lesbian. I thought you were American."
set choose_meme (random)"%"(count $memes)
set choose_meme $memes[(math $choose_meme"+1")]
printf (set_color F90)"%s\n" $choose_meme
'';
onEvent = "fish_greeting";
};
};
};
}