From 42bf5833371ef1abdb1fea91e0c35ac88ed74880 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Fri, 20 Sep 2024 00:56:52 +0200 Subject: [PATCH] Fix .zsh_history on macOS --- .gitignore | 6 +----- config/zsh/.zshrc | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index f245da4..eaa868f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,8 @@ -**/stop.sh -**/bookmarks **/lazy-lock.json **/.netrwhist **/__pycache__ -**/qtile/custom.py -**/qtile/autostart.sh -**/qtile/autostop.sh **/zed/.tmp* **/zed/embeddings **/zed/keymap.json **/zed/prompts +**/.zsh_history \ No newline at end of file diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc index ecde111..97766e1 100644 --- a/config/zsh/.zshrc +++ b/config/zsh/.zshrc @@ -14,6 +14,7 @@ setopt HIST_SAVE_NO_DUPS setopt HIST_REDUCE_BLANKS setopt SHARE_HISTORY setopt INC_APPEND_HISTORY +ln -sf $XDG_DATA_HOME/zsh/history $ZDOTDIR/.zsh_history # set path path=(~/.local/bin "${path[@]}")