From 5c8d379615a919141c4ded92e46ae36c222b76b9 Mon Sep 17 00:00:00 2001 From: Tri Vo Khac <33442340+vokhactri@users.noreply.github.com> Date: Wed, 24 May 2023 22:41:29 +0700 Subject: [PATCH] chore: move `zsh_history` to `ZDOTDIR` --- zsh/.config/zsh/.zshrc | 2 -- zsh/.config/zsh/zsh-exports | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 82ef322..89ece1a 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -3,8 +3,6 @@ # workaround for vscode terminal [[ -z "${XDG_CONFIG_HOME}" ]] && export XDG_CONFIG_HOME="${HOME}/.config" [[ -z "${ZDOTDIR}" ]] && export ZDOTDIR="${XDG_CONFIG_HOME}/zsh" -HISTFILE="$HOME"/.zsh_history - # some useful options (man zshoptions) setopt AUTO_CD EXTENDED_GLOB NOMATCH MENU_COMPLETE diff --git a/zsh/.config/zsh/zsh-exports b/zsh/.config/zsh/zsh-exports index 26af6bb..97c71a6 100644 --- a/zsh/.config/zsh/zsh-exports +++ b/zsh/.config/zsh/zsh-exports @@ -1,5 +1,6 @@ #!/usr/bin/env bash +HISTFILE="$ZDOTDIR"/.zsh_history HISTSIZE=1000000 SAVEHIST=1000000