37 lines
777 B
Nix
37 lines
777 B
Nix
{config, pkgs, ...}:
|
|
|
|
{
|
|
users.users.cerberus.packages = with pkgs; [
|
|
zoxide
|
|
fzf
|
|
];
|
|
# ZSH configuration
|
|
programs.zsh = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
autosuggestions.enable = true;
|
|
syntaxHighlighting.enable = true;
|
|
histSize = 10000;
|
|
histFile = "$HOME/.zsh_history";
|
|
setOptions = [
|
|
"HIST_IGNORE_ALL_DUPS"
|
|
"APPEND_HISTORY"
|
|
"SHARE_HISTORY"
|
|
"HIST_IGNORE_SPACE"
|
|
"EXTENDED_GLOB"
|
|
"CORRECT"
|
|
];
|
|
shellInit = ''
|
|
eval "$(zoxide init zsh)"
|
|
eval "$(fzf --zsh)"
|
|
'';
|
|
};
|
|
|
|
# Setting aliases
|
|
environment.shellAliases = {
|
|
ls = "ls -l --color --hyperlink=auto";
|
|
# ".." = "cd ..";
|
|
# "..." = "cd ../.."
|
|
};
|
|
}
|