aboutsummaryrefslogtreecommitdiff
path: root/share/cfg/fish.nix
blob: fc6ae01b5ccf812621a05e6d0b1ef9b229aba603 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ pkgs, ... }:
{
  home.packages = [ pkgs.fastfetch ];
  programs.fish = {
    functions = {
      fish_command_not_found = "echo Did not find command $argv[1]";
      __fish_command_not_found_handler = {
        body = "fish_command_not_found";
        onEvent = "fish_command_not_found";
      };
      t = "pushd $(mktemp -d /tmp/$1.XXXX)";
    };
    interactiveShellInit = ''
      fastfetch
    '';
  };
}