67 lines
1.8 KiB
Nix
67 lines
1.8 KiB
Nix
|
{ pkgs, ... }: {
|
||
|
programs.fish = {
|
||
|
enable = true;
|
||
|
# initExtra = ''
|
||
|
# export PATH="$PATH:$HOME/bin:$HOME/.local/bin:$HOME/go/bin"
|
||
|
# '';
|
||
|
|
||
|
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";
|
||
|
};
|
||
|
|
||
|
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";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
programs.zsh = {
|
||
|
enable = true;
|
||
|
initExtra = ''
|
||
|
if [[ -z "$BASH_EXECUTION_STRING" ]]; then
|
||
|
if [[ -n "$ZSH_VERSION" ]]; then
|
||
|
LOGIN_OPTION="--login"
|
||
|
else
|
||
|
LOGIN_OPTION=""
|
||
|
fi
|
||
|
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
|
||
|
fi
|
||
|
'';
|
||
|
};
|
||
|
}
|