feat(zsh.nix): adds old zsh options back

This commit is contained in:
Ahwx 2024-07-15 15:32:57 +02:00
parent 87724dcdcb
commit 2766ab58fb

View file

@ -6,6 +6,7 @@
autocd = true; autocd = true;
autosuggestion.enable = true; autosuggestion.enable = true;
enableCompletion = true; enableCompletion = true;
enableGlobalCompInit = true;
localVariables = { localVariables = {
# Looks like this: '~/some/path > ' # Looks like this: '~/some/path > '
@ -17,8 +18,30 @@
LANG = "en_US.UTF-8"; LANG = "en_US.UTF-8";
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE = "fg=#808080"; ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE = "fg=#808080";
ZSH_AUTOSUGGEST_USE_ASYNC = 1; ZSH_AUTOSUGGEST_USE_ASYNC = 1;
HISTSIZE = 100000;
SAVEHIST = 100000;
HISTFILE = "~/.zsh_history";
HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE = 1;
}; };
setOptions = [
# Corrections
"CORRECT"
# History stuff
"APPEND_HISTORY"
"INC_APPEND_HOSTORY"
"SHARE_HISTORY"
"EXTENDED_HISTORY"
"HIST_REDUCT_BLANKS"
"HIST_IGNORE_SPACE"
# Disable annoying beep
"NO_BEEP"
# Fix comments
"INTERACTIVE_COMMENTS"
];
shellAliases = { shellAliases = {
ls = "eza -lh --git"; ls = "eza -lh --git";
la = "eza -A --git"; la = "eza -A --git";