switch to zsh

This commit is contained in:
twoneis 2023-11-03 04:49:49 +01:00
parent 08a6a08e63
commit bb9c8a9825
4 changed files with 22 additions and 0 deletions

View file

@ -13,6 +13,9 @@
# Enable nix flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Add zsh to link path to enable completion for system packages
environment.pathsToLink = [ "/share/zsh" ];
# Disable documentation
documentation.nixos.enable = false;

View file

@ -5,6 +5,12 @@
home.username = "twoneis";
home.homeDirectory = "/home/twoneis";
systemd.user.sessionVariables = {
EDITOR = "hx";
SUDO_EDITOR = "hx";
VISUAL = "hx";
};
programs = {
home-manager = {
enable = true;
@ -27,6 +33,15 @@
enable = true;
settings = import ./dotfiles/alacritty/alacritty.nix;
};
zsh = {
enable = true;
enabelAutosuggestions = true;
enableCompletion = true;
enableVteIntegration = true;
dotDir = ".config/zsh";
history.ignoreDups = true;
};
};

View file

@ -13,6 +13,9 @@
# Enable nix flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Add zsh to link path to enable completion for system packages
environment.pathsToLink = [ "/share/zsh" ];
# Disable documentation
documentation.nixos.enable = false;

View file

@ -1,5 +1,6 @@
pkgs: with pkgs; [
alacritty
zsh
git
gh
man-pages