mirror of
https://github.com/EdenQwQ/nixos.git
synced 2025-12-27 02:44:58 +08:00
51 lines
1.3 KiB
Nix
51 lines
1.3 KiB
Nix
{ pkgs, inputs, ... }:
|
|
{
|
|
programs = {
|
|
fish = {
|
|
enable = true;
|
|
package = inputs.nixpkgs-fish.legacyPackages.${pkgs.system}.fish;
|
|
shellAbbrs = {
|
|
nixu = "nh os switch --ask";
|
|
homeu = "nh home switch --ask";
|
|
nixc = "doas systemctl start nh-clean.service";
|
|
vim = "nvim";
|
|
cd = "z";
|
|
};
|
|
shellAliases = {
|
|
"ls" = "exa";
|
|
"l" = "exa -lah --icons=auto";
|
|
};
|
|
shellInit = ''
|
|
zoxide init fish | source
|
|
export PATH="$HOME/.local/bin:$HOME/.juliaup/bin:$PATH"
|
|
'';
|
|
plugins = with pkgs.fishPlugins; [
|
|
{
|
|
name = "puffer";
|
|
src = puffer.src;
|
|
}
|
|
{
|
|
name = "pisces";
|
|
src = pisces.src;
|
|
}
|
|
];
|
|
functions = {
|
|
fish_greeting = "";
|
|
# fish_command_not_found =
|
|
# /*
|
|
# fish
|
|
# */
|
|
# ''
|
|
# function fish_command_not_found
|
|
# if test -e /run/.containerenv -o -e /.dockerenv
|
|
# distrobox-host-exec $argv
|
|
# else
|
|
# __fish_default_command_not_found_handler $argv
|
|
# end
|
|
# end
|
|
# '';
|
|
};
|
|
};
|
|
};
|
|
programs.man.generateCaches = false;
|
|
}
|