nix/programs/fish.nix

17 lines
337 B
Nix
Raw Normal View History

2024-06-13 15:38:40 +02:00
{...}:
{
enable = true;
shellAliases = {
"ls" = "eza -lhs type";
"cp" = "cp -v";
"mv" = "mv -v";
"ytmp3" = "yt-dlp -o '%(title)s.%(ext)s' -x --audio-format mp3";
"myip" = "curl ifconfig.me";
};
functions = {
"fish_greeting" = "fortune";
"fish_prompt" = builtins.readFile ../files/prompt.fish;
};
}