summaryrefslogtreecommitdiff
path: root/modules/basic-tools/fish.nix
blob: 5099bbdd6011fafb63d430158f55597b621105a1 (plain)
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
{ pkgs, ... }:
{
  environment.systemPackages = with pkgs; [
    lsd
    fzf
    fishPlugins.done
    fishPlugins.fzf-fish
    fishPlugins.hydro
  ];

  programs.fish = {
    enable = true;
    interactiveShellInit = ''
      set fish_greeting
      function fish_command_not_found
        echo "Command not found"
      end
    '';
    shellAliases = {
      ls = "lsd --icon=never";
      l = "ls -l";
      ll = "ls -la";
      vim = "nvim";
      grep = "grep --color=auto";
    };
  };
}