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
|
# Zsh itself
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
autosuggestion = {
|
autosuggestion = {
|
||||||
enable = true;
|
enable = true;
|
||||||
strategy = [ "completion" ];
|
strategy = [ "completion" ];
|
||||||
|
@ -24,8 +24,19 @@
|
||||||
bindkey "^H" backward-kill-word
|
bindkey "^H" backward-kill-word
|
||||||
bindkey "^Z" undo
|
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
|
# Atuin shell history
|
||||||
programs.atuin = {
|
programs.atuin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -45,7 +56,7 @@
|
||||||
store_failed = true;
|
store_failed = true;
|
||||||
secrets_filter = true;
|
secrets_filter = true;
|
||||||
enter_accept = false;
|
enter_accept = false;
|
||||||
|
|
||||||
stats = {
|
stats = {
|
||||||
common_prefix = [ "sudo" "doas" ];
|
common_prefix = [ "sudo" "doas" ];
|
||||||
};
|
};
|
||||||
|
@ -56,4 +67,4 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue