home-manager/shell/zsh.nix

45 lines
752 B
Nix
Raw Normal View History

2023-10-09 20:18:11 +00:00
{ config, pkgs, ... }:
{
programs.zsh = {
enable = true;
enableAutosuggestions = true;
enableCompletion = true;
enableVteIntegration = true;
cdpath = [
"/mnt/nixos/etc/nixos/"
"/mnt/stuff/school/"
];
defaultKeymap = null; # was "vicmd"
dotDir = ".config/zsh";
history = {
ignoreSpace = true;
path = "${config.xdg.dataHome}/zsh/zsh_history";
save = 10000;
};
historySubstringSearch.enable = true;
oh-my-zsh = {
enable = true;
plugins = [
"z"
"git"
"vi-mode"
"thefuck"
];
theme = "bira"; # TODO: figure out how to source custom theme
# other cool themes:
# duellj
# simonoff
# strug
# bira
};
sessionVariables = {
};
shellAliases = {
ls = "eza";
};
};
}