From 1499944349360092ad67f33152106daf60539193 Mon Sep 17 00:00:00 2001 From: Daniel Carrillo Date: Thu, 25 Jan 2024 20:21:03 +0100 Subject: [PATCH] [zsh] Add atuin conf to shell --- .zpreztorc | 7 +++---- .zshrc | 13 +++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.zpreztorc b/.zpreztorc index 9075e39..90639d0 100644 --- a/.zpreztorc +++ b/.zpreztorc @@ -26,7 +26,6 @@ zstyle ':prezto:*:*' color 'yes' zstyle ':prezto:load' pmodule \ 'environment' \ 'editor' \ - 'history' \ 'directory' \ 'spectrum' \ 'utility' \ @@ -50,9 +49,9 @@ zstyle ':prezto:module:editor' key-bindings 'emacs' # History # -zstyle ':prezto:module:history' histfile "~/.zsh_history" -zstyle ':prezto:module:history' histsize "100000" -zstyle ':prezto:module:history' histignorespace "true" +# zstyle ':prezto:module:history' histfile "~/.zsh_history" +# zstyle ':prezto:module:history' histsize "100000" +# zstyle ':prezto:module:history' histignorespace "true" # # Prompt diff --git a/.zshrc b/.zshrc index 135bfd6..a94ae18 100644 --- a/.zshrc +++ b/.zshrc @@ -19,9 +19,9 @@ setopt clobber zstyle ':completion:*' rehash true zstyle ':completion:*' special-dirs true -export HISTFILE=~/.zsh_history -export HISTFILESIZE=100000 -export HISTSIZE=100000 +# export HISTFILE=~/.zsh_history +# export HISTFILESIZE=100000 +# export HISTSIZE=100000 unsetopt correct unsetopt correctall @@ -90,7 +90,8 @@ siteinfo () { } remove_from_hist() { - LC_ALL=C sed -i "/$1/d" $HISTFILE + # LC_ALL=C sed -i "/$1/d" $HISTFILE + atuin search --delete $1 } ##### tilix ##### @@ -145,9 +146,9 @@ fi eval "$(direnv hook zsh)" -# Autocompletion +# Atuin zsh history -# autoload -U compinit && compinit +eval "$(atuin init zsh)" # custom device