[zsh] Add atuin conf to shell

This commit is contained in:
Daniel Carrillo 2024-01-25 20:21:03 +01:00
parent 9088a43f22
commit 1499944349
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
2 changed files with 10 additions and 10 deletions

View File

@ -26,7 +26,6 @@ zstyle ':prezto:*:*' color 'yes'
zstyle ':prezto:load' pmodule \ zstyle ':prezto:load' pmodule \
'environment' \ 'environment' \
'editor' \ 'editor' \
'history' \
'directory' \ 'directory' \
'spectrum' \ 'spectrum' \
'utility' \ 'utility' \
@ -50,9 +49,9 @@ zstyle ':prezto:module:editor' key-bindings 'emacs'
# History # History
# #
zstyle ':prezto:module:history' histfile "~/.zsh_history" # zstyle ':prezto:module:history' histfile "~/.zsh_history"
zstyle ':prezto:module:history' histsize "100000" # zstyle ':prezto:module:history' histsize "100000"
zstyle ':prezto:module:history' histignorespace "true" # zstyle ':prezto:module:history' histignorespace "true"
# #
# Prompt # Prompt

13
.zshrc
View File

@ -19,9 +19,9 @@ setopt clobber
zstyle ':completion:*' rehash true zstyle ':completion:*' rehash true
zstyle ':completion:*' special-dirs true zstyle ':completion:*' special-dirs true
export HISTFILE=~/.zsh_history # export HISTFILE=~/.zsh_history
export HISTFILESIZE=100000 # export HISTFILESIZE=100000
export HISTSIZE=100000 # export HISTSIZE=100000
unsetopt correct unsetopt correct
unsetopt correctall unsetopt correctall
@ -90,7 +90,8 @@ siteinfo () {
} }
remove_from_hist() { remove_from_hist() {
LC_ALL=C sed -i "/$1/d" $HISTFILE # LC_ALL=C sed -i "/$1/d" $HISTFILE
atuin search --delete $1
} }
##### tilix ##### ##### tilix #####
@ -145,9 +146,9 @@ fi
eval "$(direnv hook zsh)" eval "$(direnv hook zsh)"
# Autocompletion # Atuin zsh history
# autoload -U compinit && compinit eval "$(atuin init zsh)"
# custom device # custom device