aboutsummaryrefslogtreecommitdiff
path: root/core/env.nix
blob: f39f087b2595dfc7ce9bae3e58b7765f29ce256d (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, ... }:

{
  environment = {
    localBinInPath = true;

    #TODO: migrate to writeShellScriptBin
    interactiveShellInit = ''
      source "${./bash}/prompt.sh"

      alias lsa="ls -lAsh"
      alias c="codium ."
      alias p="nix-shell -p"

      mkcd() {
        mkdir -p "$1"
        cd "$1"
      }
    '';

    variables = {
      EDITOR = "${pkgs.vim}/bin/vim";
    };
  };
}