From b7915bc1554a7d786297dac6bb2fbdaaeb4cf755 Mon Sep 17 00:00:00 2001 From: hironow Date: Wed, 4 Dec 2024 21:51:05 +0900 Subject: [PATCH] Add histappend to cSpell.words in workspace settings --- .zshrc | 5 +++++ dotfiles.code-workspace | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 01e8961..eb2ab9a 100644 --- a/.zshrc +++ b/.zshrc @@ -186,6 +186,7 @@ fi export HISTFILE=~/.zsh_history export HISTSIZE=10000 export SAVEHIST=10000 +export HISTFILESIZE=10000 setopt APPEND_HISTORY setopt SHARE_HISTORY setopt HIST_IGNORE_DUPS @@ -202,4 +203,8 @@ setopt histignorespace # skip cmds w/ leading space from history export HSTR_CONFIG=hicolor # get more colors bindkey -s "\C-r" "\C-a hstr -- \C-j" # bind hstr to Ctrl-r (for Vi mode check doc) export HSTR_TIOCSTI=y +shopt -s histappend # append new history items to HISTFILE +export HISTCONTROL=ignorespace # leading space commands do not go to history +# sync history +export PROMPT_COMMAND="history -a; history -n; ${PROMPT_COMMAND}" diff --git a/dotfiles.code-workspace b/dotfiles.code-workspace index 9857265..540ed99 100644 --- a/dotfiles.code-workspace +++ b/dotfiles.code-workspace @@ -44,7 +44,10 @@ "**/__queuestorage__": true, "**/.pytest_cache": true, "**/.ruff_cache": true - } + }, + "cSpell.words": [ + "histappend" + ] }, "extensions": { "recommendations": [