Disable zsh history file
This commit is contained in:
parent
931380d698
commit
4c09acde73
1 changed files with 15 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
|||
# Zsh itself
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
|
||||
|
||||
autosuggestion = {
|
||||
enable = true;
|
||||
strategy = [ "completion" ];
|
||||
|
@ -24,8 +24,19 @@
|
|||
bindkey "^H" backward-kill-word
|
||||
bindkey "^Z" undo
|
||||
'';
|
||||
|
||||
# Disable saving the history file, as it is handled by atuin
|
||||
history = {
|
||||
# Tell it to not save anything to disk
|
||||
save = 0;
|
||||
# If it still tries to save anything, have it write to /dev/null instead just in case
|
||||
path = "/dev/null";
|
||||
# We leave size at the default to allow zsh to have command history in memory
|
||||
# for features like !! or !cmdname, but simply have it stop writing to disk
|
||||
size = 10000;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# Atuin shell history
|
||||
programs.atuin = {
|
||||
enable = true;
|
||||
|
@ -45,7 +56,7 @@
|
|||
store_failed = true;
|
||||
secrets_filter = true;
|
||||
enter_accept = false;
|
||||
|
||||
|
||||
stats = {
|
||||
common_prefix = [ "sudo" "doas" ];
|
||||
};
|
||||
|
@ -56,4 +67,4 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue