nixconf/home-manager/fish.nix
Gabriella Bere 80a894e05a swapped some shell aliases to abbreviations
fun and cool feature, also lets you modify the command since it types
out the full thing for you, yippee 🙂
2025-09-06 23:55:22 +01:00

39 lines
1.2 KiB
Nix

{ pkgs, ... }:
{
programs.fish = {
enable = true;
generateCompletions = true;
shellAliases = {
ls = "eza -lh";
ip = "ip --color=auto";
cd = "z";
};
shellAbbrs = {
nano = "nvim";
cat = "bat";
# Abbreviations for my nixos workflow
nixos-switch = "sudo nixos-rebuild switch --flake ~/nixconf &| nom";
home-switch = "home-manager switch --flake ~/nixconf &| nom";
server-switch = "nixos-rebuild switch --flake ~/nixconf#biggerpi --target-host blue@biggerpi --use-remote-sudo &| nom";
home-manager-news = "home-manager news --flake ~/nixconf";
};
shellInit = "
set --global theme_virtual_env_prompt_enabled no
set --global VIRTUAL_ENV_DISABLE_PROMPT 1
set --global theme_env_packages_hide binutils-wrapper hyprland-qtutils pciutils pkgconf-wrapper
set fish_greeting \"\"
";
plugins = [
{
name = "agnoster";
src = pkgs.fetchFromGitHub {
owner = "IBeTheBlueCat";
repo = "theme-agnoster";
rev = "c6b1e6b5671f75d30d2d81a11963ef445e78d8e6";
hash = "sha256-hO5ow+7nBqFeXWj8sjd6whuSYqsKYCpvcINU6zpAzsU=";
};
}
];
};
}