summaryrefslogtreecommitdiff
path: root/users/seth/shell/default.nix
blob: 1a5bec1e6b42b9e3e0fccf454cb7b0166f168173 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{config, ...}: {
  imports = [
    ./bash.nix
    ./fish.nix
  ];

  home = {
    sessionVariables = {
      EDITOR = "nvim";
      VISUAL = "$EDITOR";
      GPG_TTY = "$(tty)";
      CARGO_HOME = "${config.xdg.dataHome}/cargo";
      LESSHISTFILE = "${config.xdg.stateHome}/less/history";
    };

    shellAliases = {
      diff = "diff --color=auto";
      g = "git";
      gs = "g status";
    };
  };
}