diff options
Diffstat (limited to 'nix/users/profiles/fish.nix')
| -rw-r--r-- | nix/users/profiles/fish.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nix/users/profiles/fish.nix b/nix/users/profiles/fish.nix new file mode 100644 index 0000000..314e9f6 --- /dev/null +++ b/nix/users/profiles/fish.nix @@ -0,0 +1,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"; + }; + }; +} |
