90 lines
1.6 KiB
Nix
90 lines
1.6 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
programs.zsh = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
autosuggestion.enable = true;
|
|
syntaxHighlighting.enable = true;
|
|
|
|
history.size = 500000;
|
|
#history.path = "${config.xdg.dataHome}/zsh/history";
|
|
prezto = {
|
|
enable = true;
|
|
caseSensitive = true;
|
|
color = true;
|
|
editor = {
|
|
dotExpansion = true;
|
|
keymap = "vi";
|
|
};
|
|
pmodules = [
|
|
"environment"
|
|
"terminal"
|
|
"editor"
|
|
"history"
|
|
"directory"
|
|
"spectrum"
|
|
"utility"
|
|
"completion"
|
|
"syntax-highlighting"
|
|
"history-substring-search"
|
|
"prompt"
|
|
"git"
|
|
];
|
|
prompt.theme = "minimal";
|
|
syntaxHighlighting.highlighters = [
|
|
"main"
|
|
"brackets"
|
|
"pattern"
|
|
"line"
|
|
"cursor"
|
|
"root"
|
|
];
|
|
tmux = {
|
|
autoStartLocal = true;
|
|
itermIntegration = true;
|
|
};
|
|
};
|
|
|
|
initExtra = ''
|
|
HISTCONTROL='erasedups:ignoreboth'
|
|
HISTIGNORE='&:[ ]*:exit:ls:bg:fg:history:clear'
|
|
unsetopt beep
|
|
'';
|
|
};
|
|
|
|
programs.fzf = {
|
|
enable = true;
|
|
enableZshIntegration = true;
|
|
};
|
|
|
|
programs.lsd = {
|
|
enable = true;
|
|
enableAliases = true;
|
|
};
|
|
|
|
programs.zoxide = {
|
|
enable = true;
|
|
enableZshIntegration = true;
|
|
options = [
|
|
"--cmd cd"
|
|
];
|
|
};
|
|
|
|
programs.bat.enable = true;
|
|
programs.ripgrep.enable = true;
|
|
|
|
home.packages = with pkgs; [
|
|
fd
|
|
du-dust
|
|
glow
|
|
ripgrep-all
|
|
#nerdfonts
|
|
];
|
|
|
|
home.sessionVariables = lib.mkMerge [ {
|
|
BAT_THEME = "Coldark-Cold";
|
|
}
|
|
];
|
|
}
|