59 lines
No EOL
1.5 KiB
Nix
59 lines
No EOL
1.5 KiB
Nix
{ ... }:
|
|
{
|
|
# Zsh itself
|
|
programs.zsh = {
|
|
enable = true;
|
|
|
|
autosuggestion = {
|
|
enable = true;
|
|
strategy = [ "completion" ];
|
|
};
|
|
|
|
syntaxHighlighting = {
|
|
enable = true;
|
|
highlighters = [ "main" "brackets" "cursor" "line" ];
|
|
};
|
|
|
|
initExtra = ''
|
|
bindkey "^[[H" beginning-of-line
|
|
bindkey "^[[F" end-of-line
|
|
bindkey "^[[3~" delete-char
|
|
bindkey "^[[1;5C" forward-word
|
|
bindkey "^[[1;5D" backward-word
|
|
bindkey "5~" kill-word
|
|
bindkey "^H" backward-kill-word
|
|
bindkey "^Z" undo
|
|
'';
|
|
};
|
|
|
|
# Atuin shell history
|
|
programs.atuin = {
|
|
enable = true;
|
|
enableZshIntegration = true;
|
|
settings = {
|
|
dialect = "us";
|
|
auto_sync = true;
|
|
update_check = false;
|
|
sync_address = "https://atuin.myriation.xyz";
|
|
sync_frequency = "0";
|
|
search_mode = "fuzzy";
|
|
filter_mode = "global";
|
|
style = "full";
|
|
invert = false;
|
|
show_help = true;
|
|
exit_mode = "return-query";
|
|
store_failed = true;
|
|
secrets_filter = true;
|
|
enter_accept = false;
|
|
|
|
stats = {
|
|
common_prefix = [ "sudo" "doas" ];
|
|
};
|
|
|
|
sync = {
|
|
records = true;
|
|
dotfiles = false;
|
|
};
|
|
};
|
|
};
|
|
} |