summary refs log tree commit diff
path: root/dot_zshrc
diff options
context:
space:
mode:
authorAlen <alen@dotfiles.xyz>2023-09-23 23:09:59 +0400
committerAlen <alen@dotfiles.xyz>2023-09-23 23:09:59 +0400
commit923983285eb516aef65638afe16cb0fc21e90b8b (patch)
treedc991316cada2b946b79dc25db32133b071bdacf /dot_zshrc
parent9b364cb7b5463167f17c6c7c7a634c1e6835eac0 (diff)
Fix history potentially being reset with /etc/zshrc
Diffstat (limited to 'dot_zshrc')
-rw-r--r--dot_zshrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/dot_zshrc b/dot_zshrc
index d62132d..13b626a 100644
--- a/dot_zshrc
+++ b/dot_zshrc
@@ -1,3 +1,8 @@
+# Set up nice and lengthy history
+export HISTFILE="${ZDOTDIR:-$HOME}/.zsh_history"
+export HISTSIZE=1000000
+export SAVEHIST=1000000
+
 # Simple prompt
 PROMPT="%F{15}%K{4}%n@%M:%~%f%k "
 RPROMPT="%(?.%F{10}%?.%F{9}%?)%f %T"