Files
WinterEkisha c70a2212d7 feat(yazi): added lg on ;
swapped default : and ; behaivor
2026-11-21 17:00:18 -08:00

76 lines
1.7 KiB
Nix

# This is your home-manager configuration file
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
{
inputs,
lib,
config,
pkgs,
...
}: {
imports = [
./wezterm/wezterm.nix
];
home.packages = (
(with pkgs; [
(pkgs.writeShellScriptBin "lg" ''exec ${pkgs.lazygit}/bin/lazygit "$@"'')
])
++ (with pkgs.unstablePkgs; [
clipse
timg
])
);
# --- Shell environment ---
programs.direnv.enable = true;
home.shellAliases = {
ll = "ls -l";
la = "ls -a";
lal = "ls -al";
};
programs.fish = {
enable = true;
shellAliases = {
ls = "eza --icons --group-directories-last --git";
lA = "ls --all --all"; #eza show . and ..
lAl = "lA -l";
tree = "ls --tree";
cat = "bat --no-paging --style=plain";
kys = "shutdown 0";
please = "sudo";
};
};
home.shell.enableFishIntegration = true;
programs.bash = {
enable = true;
#shellAliases = {};
initExtra = ''
# "check if parent process is not fish" && "make nested shells work properly"
if grep -qv fish /proc/$PPID/comm && [[ $SHLVL == [12] ]]; then
# set $SHELL for better integration with programs like nix shell, tmux, etc.
SHELL=${pkgs.fish}/bin/fish exec fish
fi
'';
};
programs.starship = {
enable = true;
};
# --- CLI utils ---
programs.git = {
enable = true;
settings = {
init.defaultBranch = "main";
user.name = "winter";
user.email = "149337190+WinterEkisha@users.noreply.github.com";
};
};
programs.eza.enable = true;
programs.bat.enable = true;
programs.btop.enable = true;
programs.lazygit.enable = true;
programs.tmux.enable = true;
}