diff options
Diffstat (limited to 'core/env.nix')
| -rw-r--r-- | core/env.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/core/env.nix b/core/env.nix new file mode 100644 index 0000000..2fbf55e --- /dev/null +++ b/core/env.nix @@ -0,0 +1,23 @@ +{ pkgs, ... }: + +{ + environment = { + localBinInPath = true; + + #TODO: migrate to writeShellScriptBin + interactiveShellInit = '' + alias lsa="ls -lAsh" + alias c="codium ." + alias p="nix-shell -p" + + mkcd() { + mkdir -p "$1" + cd "$1" + } + ''; + + variables = { + EDITOR = "${pkgs.vim}/bin/vim"; + }; + }; +} |