Add shell aliases and eza program configuration

This commit is contained in:
panotaka
2023-11-25 22:20:28 -04:00
parent fef12b0b50
commit 235a5b3895
4 changed files with 84 additions and 36 deletions

View File

@@ -1,36 +1,11 @@
{ config, ... }:
let
d = config.xdg.dataHome;
c = config.xdg.configHome;
cache = config.xdg.cacheHome;
in
{
imports = [
./nushell
./common.nix
./starship.nix
./terminals.nix
./git.nix
./eza.nix
];
# add environment variables
home.sessionVariables = {
# clean up ~
LESSHISTFILE = cache + "/less/history";
LESSKEY = c + "/less/lesskey";
WINEPREFIX = d + "/wine";
# set default applications
EDITOR = "vim";
BROWSER = "firefox";
TERMINAL = "alacritty";
# enable scrolling in git diff
DELTA_PAGER = "less -R";
MANPAGER = "sh -c 'col -bx | bat -l man -p'";
};
home.shellAliases = {
k = "kubectl";
};
}