nixdots/home/programs/terminal/shell/zsh/default.nix

38 lines
881 B
Nix
Raw Permalink Normal View History

2024-03-24 12:18:51 +00:00
{ config, pkgs, ... }: {
2024-03-23 23:44:57 +00:00
imports = [
./plugins.nix
./aliases.nix
./init.nix
2024-03-23 23:44:57 +00:00
];
2024-03-24 12:18:51 +00:00
config = {
2024-03-23 23:44:57 +00:00
programs.zsh = {
enable = true;
dotDir = ".config/zsh";
enableCompletion = true;
2024-04-04 20:26:51 +00:00
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
2024-03-23 23:44:57 +00:00
history = {
# don't clutter $HOME
2024-03-24 12:18:51 +00:00
path = "${config.xdg.dataHome}/zsh/zsh_history";
2024-03-23 23:44:57 +00:00
save = 120000;
size = 100000;
};
# dirhashes are easy aliases to commonly used directories
# allowing use like `cd ~dl`, going to $HOME/Downloads
dirHashes = {
dl = "$HOME/Downloads";
media = "$HOME/Media";
pics = "$HOME/Media/Pictures";
vids = "$HOME/Media/Videos";
mems = "$HOME/Media/Memes";
screenshots = "$HOME/Media/Pictures/Screenshots";
dots = "$HOME/dots";
};
};
};
}