zsh init~

This commit is contained in:
twoneis 2024-01-31 21:51:33 +01:00
parent 17997a0523
commit 5016e65d67
2 changed files with 25 additions and 1 deletions

View file

@ -1,4 +1,9 @@
{ ... }: { { pkgs, ... }: {
home.packages = with pkgs; [
thefuck
git
];
home.shellAliases = { home.shellAliases = {
ga = "git add -A"; ga = "git add -A";
gc = "git commit -m "; gc = "git commit -m ";
@ -8,9 +13,24 @@
nrb = "sudo nixos-rebuild switch --flake ."; nrb = "sudo nixos-rebuild switch --flake .";
nd = "nix develop"; nd = "nix develop";
neofetch = "hyfetch";
}; };
programs.bash = { programs.bash = {
enable = true; enable = true;
}; };
programs.zsh = {
enable = true;
enableAutosuggestions = true;
enableVteIntegration = true;
history.ignoreAllDups = true;
historySubstringSearch.enable = true;
oh-my-zsh = {
enable = true;
plugins = [ "git" "thefuck" ];
theme = "bira";
};
};
} }

View file

@ -83,5 +83,9 @@
description = "twoneis"; description = "twoneis";
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [ "networkmanager" "wheel" ];
}; };
# Use zsh
programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;
}; };
} }