aboutsummaryrefslogtreecommitdiff
path: root/users/profiles/fish.nix
blob: 314e9f64aad1bc1a7746b6a55afc466e4151f312 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ ... }:
{
  programs.fish = {
    enable = true;
    interactiveShellInit = ''
      set fish_greeting ""

      fish_add_path -p ~/.cargo/bin/

      # Add utmctl to PATH
      fish_add_path /Applications/UTM.app/Contents/MacOS/
    '';
    shellAbbrs = {
      ncg = "nix-collect-garbage --delete-older-than 7d";
      ndc = "nix develop --command";
      nfc = "nix flake check";
      ngcroot = "ls -al /nix/var/nix/gcroots/auto/";
      nph = "nix profile history --profile /nix/var/nix/profiles/system";
      nsn = "nix search nixpkgs";
      nsv = "nix store verify --all";

      g = "git";
      gap = "git add --patch";
    };
    shellAliases = {
      la = "eza -la --git --color=always --group-directories-first";
      ll = "eza -la -L=1 --git --color=always --group-directories-first";
      lt = "eza -aT -L=2 --git --color=always --group-directories-first";
    };
  };
}