aboutsummaryrefslogtreecommitdiff
path: root/share/cfg/fish.nix
blob: 184ab1522431279dc72e50515d2bd73cc519482a (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
{ pkgs, ... }:
{
  home.packages = [
    pkgs.hyfetch
    pkgs.macchina
  ];
  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)";
      # see: https://entropicthoughts.com/q
      q = ''
        llm --system "Use a brief style with short replies." \
            --model 'openrouter/~deepseek/deepseek-v4-flash-latest'  $(string join ' ' $argv)
      '';
    };
    interactiveShellInit = ''
      hyfetch
    '';
  };
}