EdenQwQ/home/programs/shell/fish.nix
2026-03-23 18:26:52 +08:00

46 lines
1.1 KiB
Nix

{ pkgs, inputs, ... }:
{
programs = {
fish = {
enable = true;
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"
if test -n "$container"
export PATH="$HOME/.local/bin:$HOME/.juliaup/bin:$HOME/.npm-global/bin:$PATH"
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv fish)"
end
set -g fish_color_command = blue --italics
set -g fish_color_quote = yellow --italics
set -g fish_key_bindings fish_vi_key_bindings
'';
plugins = with pkgs.fishPlugins; [
{
name = "puffer";
src = puffer.src;
}
{
name = "pisces";
src = pisces.src;
}
];
functions = {
fish_greeting = "";
};
};
};
programs.man.generateCaches = false;
}