summaryrefslogtreecommitdiff
path: root/home/ebisu/nara/files.nix
blob: e866e47f6829400c4395559e1472f410190b407b (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
{ pkgs, ... }:
{
  home.file = {
    ".hushlogin".text = "";

    ".zshrc".text =
      let
        agkozak-zsh-prompt = pkgs.fetchFromGitHub {
          owner = "agkozak";
          repo = "agkozak-zsh-prompt";
          rev = "v3.11.4";
          hash = "sha256-FC9LIZaS6fV20qq6cJC/xQvfsM3DHXatVleH7yBgoNg=";
        };
      in
      ''
        source $(brew --prefix)/opt/zsh-vi-mode/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh
        source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
        source ${agkozak-zsh-prompt}/agkozak-zsh-prompt.plugin.zsh

        eval "$(zoxide init zsh)"

        export HISTSIZE=1000000000
        export SAVEHIST=1000000000
        setopt EXTENDED_HISTORY

        export PATH=$PATH:$HOME/.local/bin
        export PATH=$PATH:$HOME/go/bin
      '';
  };
}