2023-10-11 02:04:59 +00:00
|
|
|
{ config, pkgs, inputs, ... }:
|
2023-10-09 20:18:11 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
enableAutosuggestions = true;
|
|
|
|
enableCompletion = true;
|
2023-10-11 02:04:59 +00:00
|
|
|
syntaxHighlighting.enable = true;
|
|
|
|
autocd = true;
|
2023-10-10 05:27:15 +00:00
|
|
|
defaultKeymap = null;
|
2023-10-09 20:18:11 +00:00
|
|
|
dotDir = ".config/zsh";
|
|
|
|
history = {
|
|
|
|
ignoreSpace = true;
|
|
|
|
path = "${config.xdg.dataHome}/zsh/zsh_history";
|
|
|
|
save = 10000;
|
|
|
|
};
|
|
|
|
historySubstringSearch.enable = true;
|
2023-10-11 02:04:59 +00:00
|
|
|
plugins = [
|
|
|
|
{
|
|
|
|
name = "powerlevel10k";
|
|
|
|
file = "powerlevel10k.zsh-theme";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "romkatv";
|
|
|
|
repo = "powerlevel10k";
|
|
|
|
rev = "v1.19.0";
|
|
|
|
sha256 = "+hzjSbbrXr0w1rGHm6m2oZ6pfmD6UUDBfPd7uMg5l5c=";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
2023-10-09 20:18:11 +00:00
|
|
|
shellAliases = {
|
|
|
|
ls = "eza";
|
2023-10-11 02:04:59 +00:00
|
|
|
la = "eza -la";
|
|
|
|
l = "eza -l";
|
|
|
|
};
|
|
|
|
initExtra = ''
|
|
|
|
source ~/.config/zsh/.p10k.zsh
|
|
|
|
'';
|
|
|
|
localVariables = {
|
|
|
|
POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD = true;
|
2023-10-09 20:18:11 +00:00
|
|
|
};
|
|
|
|
};
|
2023-10-11 02:04:59 +00:00
|
|
|
# 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
|
|
|
|
# };
|
|
|
|
home.file.".config/zsh/.p10k.zsh".source = ./.p10k.zsh;
|
2023-10-09 20:18:11 +00:00
|
|
|
}
|